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::app::sqlserver { | |
$version = '1.45' | |
sqlserver_instance{ 'MSSQLSERVER': | |
features => ['SQL'], | |
source => 'C:/setup', | |
sql_sysadmin_accounts => [$facts['id']], | |
} |
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
Facter.add (:rhsm_deleted) do | |
confine :kernel => 'Linux' | |
setcode do | |
identity_output = Facter::Core::Execution.exec("cat /tmp/foo") | |
if identity_output.include?('not yet registered') | |
'not_registered' | |
elsif identity_output.include?('deleted') | |
'deleted' |
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
#!/opt/puppetlabs/puppet/bin/ruby | |
# Script to compare the classes applied by queerying the PuppetDB | |
# versus all the classes defined in a provided module path | |
# | |
# Command to run: | |
# /opt/puppetlabs/puppet/bin/ruby chk_used_classes.rb <module_path> <input_file> | |
# | |
# Arguments: | |
# @param module_path (required): Ex: /etc/puppetlabs/code/environments/production |
NewerOlder