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
LINT_IGNORES = ['rvm'] | |
namespace :lint do | |
desc "Check puppet module code style." | |
task :ci do | |
begin | |
require 'puppet-lint' | |
rescue LoadError | |
fail 'Cannot load puppet-lint, did you install it?' | |
end |
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
loggerFile = "logger.log" | |
warningLog = "puppet_error.log" | |
channel = manager.build.workspace.channel; | |
workspace = manager.build.workspace.toString(); | |
result = manager.build.result | |
checkFile = new hudson.FilePath( channel, workspace + "/" + warningLog ) | |
if ( !checkFile.exists() ) { | |
return 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
[main] | |
# The Puppet log directory. | |
# The default value is '$vardir/log'. | |
logdir = /var/log/puppet | |
# Where Puppet PID files are kept. | |
# The default value is '$vardir/run'. | |
rundir = /var/run/puppet | |
modulepath = /etc/puppet/modules/internal:/etc/puppet/modules/external |
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
foo::admin_user: "charlie" |
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 foo ( | |
$admin_user = "default_user" | |
) { | |
file { "/var/foo.conf": | |
ensure => present, | |
content => template("foo/template.erb"), | |
} | |
} |
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
admin_user: "charlie" |
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
--- | |
:backends: | |
- yaml | |
:hierarchy: | |
- %{::environment} | |
- common | |
:yaml: | |
:datadir: /etc/puppet/hieradata |
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 foo { | |
$admin_user = $environment ? { | |
"dev" => "alpha", | |
"stage" => "bravo", | |
default => "charlie" | |
} | |
file { "/var/foo.conf": | |
ensure => present, | |
content => template("foo/template.erb"), | |
} |
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 foo { | |
$admin_user = "alpha" | |
file { "/var/foo.conf": | |
ensure => present, | |
content => template("foo/template.erb"), | |
} | |
} |
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/sh | |
# modules/your_module/files/hello_world.sh | |
while getopts f: option | |
do | |
case "${option}" | |
in | |
f) FOO=${OPTARG};; | |
esac | |
done |