Google+Puppet
Demos
Demo: Puppet and Google Compute Engine
Example: Install Apache
1 package { 'apache':
2 ensure => 'installed'
3 }
4
5 service { 'apache':
6 ensure => 'running',
7 require => Package['apache']
8 }
9
10 file { '/var/www/index.html':
11 content => "Hello World\n",
12 ensure => present,
13 mode => 0644,
14 require => Package['apache']
15 }
Example: Create a Compute Engine instance
1 gce_instance { "gce-puppet":
2 ensure => present,
3 machine_type => "n1-standard-1",
4 zone => "us-central1-b",
5 image => "projects/debian-cloud/global/images/debian-7-wheezy-v20140606",
6 network => "default",
7 manifest => 'class apache ($version = "latest") {
8 package {"apache2": ensure => $version, }
9 service {"apache2": ensure => running, enable => true, }
10 }
11 include apache'
12 }