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: windows_updates | |
# =========================== | |
# | |
# This class uses a VBS script to step through windows updates. Check, download, install, reboot. | |
# | |
# Parameters | |
# ---------- | |
# | |
# Document parameters here. | |
# |
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
--- | |
aio_agent_version: 1.10.8 | |
architecture: x64 | |
choco_install_path: C:\ProgramData\chocolatey | |
chocolateyversion: !ruby/string:Puppet::Util::Execution::ProcessOutput 0.10.8 | |
dhcp_servers: | |
abiyvuzk: 100.88.0.122 | |
system: 100.88.0.122 | |
dmi: | |
manufacturer: Phoenix Technologies LTD |
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
require 'yaml' | |
require 'json' | |
p 'test' | |
def convert_yaml_to_json | |
yf = 'generated-facts.yaml' | |
jf = 'generated-facts.json' | |
d = 'C:\ProgramData\PuppetLabs\mcollective\etc' # facts file created from mcollective | |
input_filename = "#{d}\\#{yf}" |
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
bash-4.2$ sudo -u mcollective /opt/puppetlabs/bin/mco puppet runonce -I ppt-2016-1.lab.beer.town | |
We trust you have received the usual lecture from the local System | |
Administrator. It usually boils down to these three things: | |
#1) Respect the privacy of others. | |
#2) Think before you type. | |
#3) With great power comes great responsibility. | |
[sudo] password for foreman-proxy: |
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
PS C:\Users\Administrator> choco -version | |
choco : The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check | |
the spelling of the name, or if a path was included, verify that the path is correct and try again. | |
At line:1 char:1 | |
+ choco -version | |
+ ~~~~~ | |
+ CategoryInfo : ObjectNotFound: (choco:String) [], CommandNotFoundException | |
+ FullyQualifiedErrorId : CommandNotFoundException | |
PS C:\Users\Administrator> |
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 HBA manifest. Handles calling of other manifests based on card model. | |
class hba ( | |
$qcccurrentversion = '1.1.03.49') { | |
# If qcc is not installed, dont run hba sub classes | |
if ($::qcc_version in 'undef') { | |
notify { "QCC CLI not installed, skipping HBA updates": } | |
} | |
# If qcc doesnt match expected version, dont run hba sub classes | |
elsif ($::qcc_version != $qcccurrentversion) { | |
notify { "Incorrect version of QCC. Use Provisioning environment first.": } |
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 HBA manifest. Handles calling of other manifests based on card model. | |
class hba ( | |
$qcccurrentversion = '1.1.03.49') { | |
# If qcc is not installed, dont run hba sub classes | |
if ($::qcc_version == undef) { | |
notify { "QCC CLI not installed, skipping HBA updates": } | |
} | |
# If qcc doesnt match expected version, dont run hba sub classes | |
if ($::qcc_version != $qcccurrentversion) { | |
notify { "Incorrect version of QCC. Use Provisioning environment first.": } |
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 HBA manifest. Handles calling of other manifests based on card model. | |
class hba ( | |
$qcccurrentversion = '1.1.03.49') { | |
# If qcc is not installed, dont run hba sub classes | |
if ($::qcc_version == undef) { | |
notify { "QCC CLI not installed, skipping HBA updates": } | |
} | |
# If qcc doesnt match expected version, dont run hba sub classes | |
elsif ($::qcc_version != $qcccurrentversion) { | |
notify { "Incorrect version of QCC. Use Provisioning environment first.": } |
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
[*PROD* root@puppet 130 /var/log]# cat /etc/puppet/auth.conf | |
# This is the default auth.conf file, which implements the default rules | |
# used by the puppet master. (That is, the rules below will still apply | |
# even if this file is deleted.) | |
# | |
# The ACLs are evaluated in top-down order. More specific stanzas should | |
# be towards the top of the file and more general ones at the bottom; | |
# otherwise, the general rules may "steal" requests that should be | |
# governed by the specific rules. |
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
# allow access to the CA certificate; unauthenticated nodes need this | |
# in order to validate the puppet master's certificate | |
path /certificate/ca | |
auth any | |
method find | |
allow * | |
# allow nodes to retrieve the certificate they requested earlier | |
path /certificate/ | |
auth any |
NewerOlder