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
file { [ '/tmp/foo1', '/tmp/foo2', '/tmp/foo3' ]: | |
ensure => file | |
owner => 'root', | |
group => 'root', | |
mode => '0600', | |
} |
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 systest ( | |
$sysctl_hash = undef, | |
) { | |
if $sysctl_hash { | |
validate_hash($sysctl_hash) | |
$sysctl_hash.each |$sysctl_name, $sysctl_attrs| { | |
validate_hash($sysctl_attrs) | |
sysctl { $sysctl_name: |
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 jdktest ( | |
$versions = $jdktest::params::versions, | |
) inherits jdktest::params { | |
$package_names = prefix($versions, 'openjdk') | |
validate_array($versions) | |
validate_array($package_names) | |
contain jdktest::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 { 'puppetdb': | |
disable_ssl => true, | |
manage_package_repo => true, | |
postgres_version => '8.4', | |
} | |
class { 'puppetdb::master::config': } | |
$bindir1 = '/usr/pgsql-8.4' | |
$bindir2 = "${bindir1}/bin" | |
$bindirs = [ $bindir1, $bindir2 ] |
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
[0;36mDebug: Runtime environment: ruby_version=1.8.7, run_mode=user, puppet_version=3.7.5[0m | |
[0;36mDebug: Loading external facts from /var/lib/puppet/facts.d[0m | |
[0;32mInfo: Loading facts[0m | |
[0;36mDebug: Loading facts from /etc/puppet/modules/firewall/lib/facter/ip6tables_version.rb[0m | |
[0;36mDebug: Loading facts from /etc/puppet/modules/firewall/lib/facter/iptables_persistent_version.rb[0m | |
[0;36mDebug: Loading facts from /etc/puppet/modules/firewall/lib/facter/iptables_version.rb[0m | |
[0;32mInfo: Loading facts[0m | |
[0;36mDebug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_updates.rb[0m | |
[0;36mDebug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_update_last_success.rb[0m | |
[0;32mInfo: Loading facts[0m |
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
$hierayaml = "${settings::confdir}/hiera.yaml" | |
$hash = loadyaml($hierayaml) | |
# Displays data with hash key "yaml" present | |
notice($hash) | |
# Extract the value of key "yaml" | |
$yaml = $hash['yaml'] | |
# $yaml is undef? |
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
#!/usr/bin/ruby | |
# | |
# | |
# author: Eric Ohtake | |
# | |
# The custom fact fetches the Java Plugin 64 bits version currently installed on the system. | |
# | |
## Key for the version v8u65 HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\4EA42A62D9304AC4784BF2681408560F | |
## Key for the version v8u66 HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\4EA42A62D9304AC4784BF2681408660F |
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
test |