Skip to content

Instantly share code, notes, and snippets.

@adamancini
Created October 8, 2012 15:26
Show Gist options
  • Save adamancini/3853107 to your computer and use it in GitHub Desktop.
Save adamancini/3853107 to your computer and use it in GitHub Desktop.
Puppet Nodes
node "common" {
class { "apt": stage => first }
class { "deployer": stage => first }
class { "build-tools": stage => first, require => Class["apt"] }
include zsh
include vim
include sshd
}
node "oswin" inherits common {
include nginx
class { "mysql::server":
config_hash => { 'root_password' => 'password' },
stage => second,
}
}
node "base" inherits common {
}
node "idris" inherits common {
include rvm
#include apache
#include nginx
#include nginx::redmine
include lamp-server
class { "mysql::server":
config_hash => { 'root_password' => 'password' },
stage => second,
}
rvm_system_ruby {
'ruby-1.9.3-p194':
ensure => 'present',
default_use => true;
}
rvm::system_user { deployer: ;}
mysql::db { "redmine":
user => "redmine",
password => "password",
host => "localhost",
grant => ["all"],
require => Class["mysql::server"],
} ->
class { "redmine":
require => [Class["mysql::server"],Database_grant["redmine@localhost/redmine"]],
admin_password => "password",
database => "redmine",
username => "redmine",
password => "password",
app_title => "app name",
host_name => "hostname",
stage => last,
}
class { "wordpress":
wordpress_db_name => "wordpress",
wordpress_db_user => "wordpress",
wordpress_db_password => "password",
stage => last,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment