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
puppet master --configprint modulepath; ls -lh $(puppet master --configprint modulepath); tree $(puppet master --configprint modulepath)/concat | |
/etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules | |
ls: cannot access /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules: No such file or directory | |
/etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules/concat [error opening dir] | |
0 directories, 0 files |
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
=> [#<Hashie::Mash __metadata=#<Hashie::Mash type="WebResult" uri="https://api.datamarket.azure.com/Data.ashx/Bing/Search/Web?Query='growth hacker'&$skip=0&$top=1"> description="The rise of the Growth Hacker The new job title of “Growth Hacker” is integrating itself into Silicon Valley’s culture, emphasizing that coding and technical ..." display_url="andrewchen.co/2012/04/27/how-to-be-a-growth-hacker-an-airbnbcraigs..." id="28e6bafd-d42c-4232-a4ce-cfcfd3bfc617" title="Growth Hacker is the new VP Marketing - @andrewchen" url="http://andrewchen.co/2012/04/27/how-to-be-a-growth-hacker-an-airbnbcraigslist-case-study/">] |
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
[mco@moslexmcol-devel ~]$ mco rpc -v package status package=httpd | |
Discovering hosts using the redisdiscovery method .... 4 | |
* [ ============================================================> ] 4 / 4 | |
moslexmcol-devel.eng.net : wrong number of arguments (1 for 2) | |
wrong number of arguments (1 for 2)pfxtp04 : OK | |
{:properties=> {:version=>"2.2.15", :release=>"15.el6.centos.1", :epoch=>"0", :ensure=>"2.2.15-15.el6.centos.1", :name=>"httpd", :provider=>:yum, :arch=>"x86_64"}, :output=> {:version=>"2.2.15", :release=>"15.el6.centos.1", :epoch=>"0", :ensure=>"2.2.15-15.el6.centos.1", :name=>"httpd", :provider=>:yum, :arch=>"x86_64"}} |
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
https://github.com/puppetlabs/puppetlabs-vcsrepo/blob/master/examples/git/clone.pp | |
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Vcsrepo[/tmp/vcstest-git-clone] is already declared in file /etc/puppet/development/modules/mcollective/manifests/plugins/plugin.pp at line 49; cannot redeclare at /etc/puppet/development/modules/mcollective/manifests/plugins/plugin.pp:49 on node pfina04 |
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
# /etc/puppet/modules/netif/manifests/eth.pp | |
# handle ethernet and VLAN ethernet device type configuration | |
# | |
define netif::eth ($ifaddr = "", $ifaddr6 = "", $aliases = [], $aliases6 = [], $onboot = "yes" , $mtu) | |
{ | |
$ifname = $name | |
# filename |
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
gitrepo/ | |
server1/ | |
postgres_cookbook | |
users_cookbook | |
server2/ | |
passenger_cookbook | |
users_cookbook | |
nginx_cookbook |
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
# /etc/puppet/modules/netif/manifests/eth.pp | |
# handle ethernet and VLAN ethernet device type configuration | |
# | |
define netif::eth ($ifaddr = "", $ifaddr6 = "", $aliases = [], $aliases6 = [], $onboot = "yes" , $mtu="1500") | |
{ | |
$ifname = $name | |
# filename | |
$eth_file = "/etc/sysconfig/network-scripts/ifcfg-${ifname}" |
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
if versions.all? {|i| i == versions.first} | |
return versions.first | |
else | |
return -1 | |
end | |
versions = ["3.1.10-49936.10934", "3.1.10-49936.10934", "3.1.10-49936.10934", "3.1.10-49936.10934", "3.1.10-49936.10934"] | |
versions = ["3.1.11-", "3", "312", "3.1.10-49936.10934", "3.1.10-49936.10934"] |
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
def version | |
Puppet.info("Entering Version") | |
package = resource[:package_list].first | |
package = package.to_s | |
version = `rpm -q --qf #{NEVRAFORMAT} #{package}` | |
Puppet.info("Resource: #{resource[:version]}") | |
Puppet.info("Current: #{version}") | |
return version | |
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
def version | |
Puppet.info("Entering Version") | |
package = resource[:package_list].first | |
package = package.to_s | |
version = `rpm -q --qf #{NEVRAFORMAT} #{package}` | |
Puppet.info("Resource: #{resource[:version]}") | |
Puppet.info("Current: #{version}") | |
return version | |
end |
NewerOlder