Created
July 28, 2010 19:34
-
-
Save clofresh/495951 to your computer and use it in GitHub Desktop.
This file contains 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
node /^cloud\d+\.prod\.mydomain\.net$/ { | |
include portal | |
} | |
node /^cloud\d+\.dev\.mydomain\.net$/ { | |
include portal | |
include random-dev-stuff | |
} | |
class portal { | |
include pyodbc | |
include pdf | |
include mongodb | |
include memcached-portal | |
include nginx-portal | |
include tornado | |
package { "python-setuptools": | |
ensure => installed | |
} | |
package { "python-django": | |
ensure => installed | |
} | |
package { "python-memcache": | |
ensure => installed | |
} | |
package { "fabric": | |
ensure => installed | |
} | |
file { "/etc/sudoers.d/appuser": | |
owner => root, group => root, mode => 440, | |
source => "puppet://puppet.mydomain.net/files/portal/etc/sudoers.d/appuser" | |
} | |
file { "/home/appuser/deployed": | |
ensure => directory, | |
owner => so1web, group => so1web, mode => 755, | |
} | |
} | |
class random-dev-stuff { | |
... | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment