Created
February 5, 2015 10:20
-
-
Save anonymous/4162d9371233763d5234 to your computer and use it in GitHub Desktop.
puppet masterless
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
puppet apply --modulepath ../../../modules --node_terminus exec --external_nodes $(pwd)/enc.sh ../manifests/init.pp --certname foo --test --noop |
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
#!/bin/bash | |
exec cat ${1}.yaml |
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
--- | |
classes: | |
clubs_host: | |
clubs_host::params: | |
clubs: | |
admin: {} | |
httpd: true | |
lumberjack: false | |
tomcat: true |
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
class clubs_host { | |
notify { "Loaded clubs_host": } | |
require 'clubs_host::install' | |
} |
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
class clubs_host::install inherits ::clubs_host::params { | |
if $::clubs_host::params::lumberjack != false { | |
class { '::clubs_host::lumberjack::install': } | |
} | |
if $::clubs_host::params::httpd != false { | |
class { '::clubs_host::httpd::install': } | |
} | |
if $::clubs_host::params::tomcat != false { | |
class { '::clubs_host::tomcat::install': } | |
} | |
if $::clubs_host::params::db != false { | |
class { '::clubs_host::db::install': } | |
} | |
} |
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
manifests/ | |
├── db | |
│ └── install.pp | |
├── httpd | |
│ ├── config | |
│ │ └── clubs.pp | |
│ ├── config.pp | |
│ └── install.pp | |
├── init.pp | |
├── install.pp | |
├── lumberjack | |
│ └── install.pp | |
├── params.pp | |
└── tomcat | |
├── config | |
│ └── clubs.pp | |
├── config.pp | |
└── install.pp |
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
class clubs_host::params ( | |
$tomcat = false, | |
$httpd = false, | |
$db = false, | |
$lumberjack = true, | |
$logstash_hosts = ['<host>:6782'], | |
$clubs = { }, | |
$httpd_package = 'httpd', | |
$tomcat_package = 'tomcat6', | |
$mysql_package = 'mysql55-server', | |
) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment