Skip to content

Instantly share code, notes, and snippets.

@jaytaph
Created October 14, 2012 08:26
Show Gist options
  • Save jaytaph/3887955 to your computer and use it in GitHub Desktop.
Save jaytaph/3887955 to your computer and use it in GitHub Desktop.
Added very crude apache webserver to node2
class apache {
package { "httpd" :
ensure => installed,
}
service { "httpd" :
ensure => running,
require => Package["httpd"];
}
}
node base {
host { "puppetmaster" :
ensure => present,
ip => "33.33.33.100",
name => "puppetmaster.webtech.ipc",
}
host { "node1" :
ensure => present,
ip => "33.33.33.101",
name => "node1.webtech.ipc",
}
host { "node2" :
ensure => present,
ip => "33.33.33.102",
name => "node2.webtech.ipc",
}
}
node puppetmaster inherits base {
}
node node1 inherits base {
}
node node2 inherits base {
class { "apache" : }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment