Created
October 14, 2012 08:26
-
-
Save jaytaph/3887955 to your computer and use it in GitHub Desktop.
Added very crude apache webserver to node2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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