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
| ----------- Step 1 | |
| Copy the following files from the hub to the exact same location on the spoke | |
| # certs | |
| /etc/puppetlabs/puppet/ssl/certs/pe-internal-broker.pem | |
| /etc/puppetlabs/puppet/ssl/certs/pe-internal-mcollective-servers.pem | |
| /etc/puppetlabs/puppet/ssl/certs/pe-internal-peadmin-mcollective-client.pem | |
| /etc/puppetlabs/puppet/ssl/certs/pe-internal-puppet-console-mcollective-client.pem | |
| # private keys |
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
| source ENV['GEM_SOURCE'] || "https://rubygems.org" | |
| gem 'rake', :require => false | |
| gem 'rspec-puppet', :require => false | |
| gem 'puppetlabs_spec_helper', :require => false | |
| gem 'puppet-lint', :require => false | |
| gem 'rspec-core', '3.1.7', :require => false | |
| gem 'metadata-json-lint', :require => false | |
| group :system_tests do |
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
| class puppet_enterprise_agent_upgrade ( | |
| $version, | |
| $el_version = $::lsbmajdistrelease, | |
| ) { | |
| yumrepo {'puppet_enterprise_local': | |
| descr => 'Puppet Labs PE Packages $releasever - $basearch', | |
| baseurl => "https://puppetmaster.company.com:8140/packages/${version}/el-${el_version}-x86_64", | |
| enabled => 1, | |
| gpgcheck => 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
| for i in $( cat /tmp/nodelist_20140711 ) | |
| puppet_env=$(/opt/puppet/bin/rake environment=production -f /opt/puppet/share/puppet-dashboard/Rakefile node:listgroups[$i]| grep 'DEV\|QA\|UAT' | tr '[:upper:]' '[:lower:]') | |
| /opt/puppet/bin/rake environment=production -f /opt/puppet/share/puppet-dashboard/Rakefile node:variables[$i,cppib_env=${puppet_env}] | |
| done |
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
| sssd <----- nsswitch (passwd, shadow, autofs) ldap.conf | |
| ^ | | |
| |--------- pam (via pas module) |-------- ? | |
| | | | |
| |------------<-good-<-- sudo -->-bad->----------X-----| | |
| What is involved in getting machine auth functions through SSSD? | |
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
| class SysInventory | |
| def self.getInventory | |
| unless @inventory | |
| lshw = Facter::Util::Resolution.exec('lshw -json -quiet') | |
| require 'json' | |
| @inventory = JSON.parse lshw | |
| end | |
| @inventory | |
| end |
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
| --- | |
| :backends: | |
| - yaml | |
| :yaml: | |
| :datadir: /etc/puppetlabs/hieradata | |
| :hierarchy: | |
| - fqdn/%{fqdn} | |
| - site/%{site}/%{app}/%{role} | |
| - site/%{site}/%{app} |
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 'openssl' | |
| require 'yaml' | |
| pol_file = File.join(File.dirname(__FILE__),"auths.yaml") | |
| pol = YAML.load(File.read(pol_file)) | |
| csr = OpenSSL::X509::Request.new STDIN.read | |
| pw = nil | |
| id_oid = pol[:id_oid] | |
| id = nil |
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
| [master] | |
| config_version = git --work-tree=$confdir/environments/$environment/ --git-dir=/$confdir/environments/$environment/.git/ log --short -n 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
| #!/usr/bin/env ruby | |
| require 'yaml' | |
| require 'aws-sdk' | |
| config_file = File.join(File.dirname(__FILE__),"config.yml") | |
| config = YAML.load(File.read(config_file)) | |
| AWS.config(config) | |
| sqs = AWS::SQS.new |