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 config | |
libdir = /usr/share/mcollective/plugins | |
logfile = /var/log/mcollective.log | |
daemonize = 1 | |
keeplogs = 1 | |
max_log_size = 10240 | |
loglevel = debug | |
identity = my_laptop | |
registerinterval = 300 |
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
locad@ts255 ~ $ sudo puppet resource service org.apache.httpd [system] | |
service { 'org.apache.httpd': | |
ensure => 'running', | |
enable => 'true', | |
} | |
locad@ts255 ~ $ sudo ruby test.rb [system] | |
Puppet::Type::Service::ProviderLaunchd | |
:absent | |
locad@ts255 ~ $ cat test.rb [system] | |
require 'puppet' |
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 | |
source /usr/local/munki/munkiwebadmin-config | |
FILES=( | |
"preflight" | |
"postflight" | |
"report_broken_client" | |
"munkiwebadmin-config" | |
) | |
for item in ${FILES[@]} |
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 | |
source /usr/local/munki/munkiwebadmin-config | |
FILES=( | |
"preflight" | |
"postflight" | |
"report_broken_client" | |
"munkiwebadmin-config" | |
) | |
for item in ${FILES[@]} |
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
include wget | |
# Setup apache and mysql | |
class {'apache': } | |
class {'apache::mod::php': } | |
class { 'mysql': } | |
class { 'mysql::server': | |
config_hash => { 'root_password' => 'password' } | |
} | |
# Install Tiny Tiny RSS |
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
https://github.com/Jaharmi/autopkg_recipes.git | |
http://github.com/autopkg/recipes.git | |
https://github.com/hjuutilainen/autopkg-recipes.git | |
https://github.com/keeleysam/recipes.git |
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
vvrantchan@C02L49F3DR53 ~ $ facter -h | |
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- facter/application (LoadError) | |
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' | |
from /usr/bin/facter:72:in `<main>' |
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 bootstrap::nosslsearch { | |
host { 'www.google.com': | |
ensure => 'present', | |
ip => $::nosslsearch_ip_address, | |
target => '/etc/hosts', | |
notify => Exec["flushdnscache"], | |
} | |
exec { 'flushdnscache': | |
command => "/usr/bin/dscacheutil -flushcache", |
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
$ munkiimport CS5Product_Install.pkg | |
Making disk image containing CS5Product_Install.pkg... | |
/Users/wadmin/Desktop/CS5Product_Install.pkg/Contents/Resources/ASU/Install.dylib/Contents/CodeResources: Authentication errorhdiutil: create failed - user interaction required for authorization | |
Disk image creation failed. | |
Could not convert CS5Product_Install.pkg to a disk image. |
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 'cfpropertylist' | |
module Puppet::Parser::Functions | |
newfunction(:has_app, :type => :rvalue) do |args| | |
if (args.is_a? String) | |
args = [args] | |
end | |
appname = args[0] | |
plist = CFPropertyList::List.new(:file => "/Library/Managed Installs/ApplicationInventory.plist") | |
data = CFPropertyList.native_types(plist.value) |
OlderNewer