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
$force_noop_real = str2bool( pick( $::force_noop, hiera('force_noop', 'true') ) ) | |
if $force_noop_real { | |
notify { "Puppet noop safety latch is enabled in site.pp!": } | |
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
$sshkey = @("SSHKEY"/L) | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfue8T42mIcudzTzFOVagdqn1TuZwJVPNThbqYl9o6ZwWZcw+J/L4ZZB2sl/scTxPYA4O/ywpb95FMwFWi35w4Phk2xL+vBZtKLw/gKZXuRoC84zeoeUynJMl+eBxxe/ENDVTrkmvweqlYXwlwgA229hpkY4k35aNQw9VLQE35LuQEpCvA+d+JxfEJKzBDDE00vhNVHj1iBylhdXDYCtyOnpCO0LUf4G5/4nafn093ioc7lun8p215KZQLiD94w8zBVruRQIlESHqKDkLx4HHiGo+v6JGQYFqoRoKJVpI0gTm7xyNgkY6pEiA0d+/3ayU6cc89emKbYYgUQP5rVA9d mcadorette@mac-c02q2cd8g8wp | |
| SSHKEY | |
file_line{'authorized_keys': | |
path => '/tmp/authorized_keys', | |
line => $sshkey, | |
} |
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
node haproxy.pdx.puppetlabs.demo { | |
class { 'haproxy': } | |
haproxy::frontend { 'puppet00': | |
ipaddress => '*', | |
ports => '8140', | |
mode => 'tcp', | |
options => [ | |
{ 'default_backend' => 'puppet00' }, | |
{ 'option' => [ | |
'tcplog', |
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 profile::patch::pup_5015 { | |
if $::puppetversion == '4.3.1' { | |
if $::kernel == 'AIX' { | |
file {'pup_5015_patch': | |
path => '/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/aixobject.rb', | |
source => 'puppet:///modules/profile/pup_5015.patch', | |
} | |
} | |
} | |
} |
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 | |
PRIMARY_MASTER='mastera' | |
SECONDARY_MASTER='masterb' | |
PATH="/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin:/opt/puppet/bin:$PATH" | |
declare -x PE_CERT=$(puppet agent --configprint hostcert) | |
declare -x PE_KEY=$(puppet agent --configprint hostprivkey) | |
declare -x PE_CA=$(puppet agent --configprint localcacert) | |
declare -x NC_CURL_OPT="-s --cacert $PE_CA --cert $PE_CERT --key $PE_KEY --insecure" |
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 | |
PRIMARY_MASTER='mastera' | |
SECONDARY_MASTER='masterb' | |
PATH="/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin:/opt/puppet/bin:$PATH" | |
declare -x PE_CERT=$(puppet agent --configprint hostcert) | |
declare -x PE_KEY=$(puppet agent --configprint hostprivkey) | |
declare -x PE_CA=$(puppet agent --configprint localcacert) | |
declare -x NC_CURL_OPT="-s --cacert $PE_CA --cert $PE_CERT --key $PE_KEY --insecure -X POST" |
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
users: | |
matt: | |
home: /home/matt | |
shell: /bin/bash | |
description: Matt Admin | |
tony: | |
home: /home/tony | |
shell: /bin/bash | |
description: Tony Admin | |
john: |
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 | |
MASTER=`hostname -f` | |
SCRIPTNAME=$(basename $0) | |
OUTPUTDIR='/var/tmp/' | |
PATH="/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin:/opt/puppet/bin:$PATH" | |
declare -x PE_CERT=$(puppet agent --configprint hostcert) | |
declare -x PE_KEY=$(puppet agent --configprint hostprivkey) | |
declare -x PE_CA=$(puppet agent --configprint localcacert) | |
declare -x NC_CURL_OPT="-s --cacert $PE_CA --cert $PE_CERT --key $PE_KEY" |
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
#the top type is needed to deal with an untrusted cert | |
add-type @" | |
using System.Net; | |
using System.Security.Cryptography.X509Certificates; | |
public class TrustAllCertsPolicy : ICertificatePolicy { | |
public bool CheckValidationResult( | |
ServicePoint srvPoint, X509Certificate certificate, | |
WebRequest request, int certificateProblem) { |
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 profile::oracle::db { | |
$install_type = hiera('oracle_install_type', 'EE') | |
$install_version = hiera('oracle_install_version', '12.1.0.2') | |
$oracle_base = hiera('oracle_base', '/oracle') | |
$oracle_home = hiera('oracle_home', '/oracle/product/12.1/db') | |
$ora_data_loc = hiera('oracle_data_loc', '/oracle/oradata') | |
$ora_rec_area_loc = hiera('oracle_recovery_loc', | |
'/oracle/flash_recovery_area') | |
$install_file_prefix = hiera('oracle_install_file_prefix', | |
'linuxamd64_12102_database') |
OlderNewer