This file contains hidden or 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
| case $facts['os']['family'] { | |
| 'debian': { | |
| $x11_pkg = 'xorg' | |
| $ssh_pkg = 'ssh' | |
| } | |
| 'solaris': { | |
| $x11_pkg = 'x11/server/xorg' | |
| $ssh_pkg = 'network/ssh' | |
| } | |
| 'windows': { |
This file contains hidden or 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
| yumrepo { 'updates': | |
| ensure => 'present', | |
| descr => 'CentOS-$releasever - Updates', | |
| enabled => '1', | |
| gpgcheck => '1', | |
| gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7', | |
| mirrorlist => 'http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra', | |
| } |
This file contains hidden or 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
| require 'optparse' | |
| require 'puppetclassify' | |
| require 'yaml' | |
| namespace :classify do | |
| ARGV.delete "--" | |
| ## | |
| ## Example execution: rake classify:create_env_group -- -p'Parent Group' --name='App Test Group' --e='my_env' |
This file contains hidden or 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
| root = true | |
| # Unix-style newlines with a newline ending every file | |
| [*] | |
| end_of_line = lf | |
| insert_final_newline = true |
This file contains hidden or 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
| require 'puppetlabs_spec_helper/rake_tasks' | |
| require 'puppet-lint/tasks/puppet-lint' | |
| desc "Validate Puppefile with R10k" | |
| task :puppetfile do | |
| begin | |
| require 'r10k' | |
| sh "r10k puppetfile check" | |
| rescue LoadError => e | |
| warn "Skipping Puppetfile validation; the r10k gem was not found" |
This file contains hidden or 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
| require 'json' | |
| require 'net/http' | |
| require 'uri' | |
| require 'openssl' | |
| environment_path = ARGV[0] || Dir.pwd | |
| new_only = ARGV[1] || false | |
| def forge_request(forge_name) |
This file contains hidden or 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
| --- | |
| BUNDLE_PATH: .bundle | |
| BUNDLE_DISABLE_SHARED_GEMS: "1" |
This file contains hidden or 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
| stage {'1':} -> Stage['main'] | |
| class first { | |
| notify {'simulated change':} | |
| } | |
| class second { | |
| exec { '/bin/echo "I should not have run"': | |
| refreshonly => true, | |
| logoutput => true, |
This file contains hidden or 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
| ini_setting { "master_hiera_config": | |
| ensure => present, | |
| path => '/etc/puppetlabs/puppet/puppet.conf', | |
| section => 'main', | |
| setting => 'hiera_config', | |
| value => '$environmentpath/production/hiera.yaml', | |
| } |
This file contains hidden or 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 | |
| set -e | |
| # The Git plugin should be told to clone the module repository to a directory | |
| # by the same name as the module. We will do most of our work from within the | |
| # the module's working directory. | |
| cd ntp | |
| # Select Ruby version using RVM |