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
| ebug: Puppet::Type::Package::ProviderYum: Executing '/usr/bin/yum -d 0 -e 0 -y downgrade CO-PreStack-NIC-Drivers-kernel-3.0.29-0.0.tk.co.3.1.9-49562.' | |
| debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm -q CO-PreStack-NIC-Drivers-kernel-3.0.29-0.0.tk.co --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH} | |
| err: /Stage[main]/CO::Xrole::Core/Package[CO-PreStack-NIC-Drivers-kernel-3.0.29-0.0.tk.co]/ensure: change from 3.1.12-51995.12173 to 3.1.9-49562. failed: Could not update: Failed to update to version 3.1.9-49562., got version 3.1.12-51995.12173 instead at /etc/puppet/dev/modules/co/manifests/xrole.pp:105 |
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
| require 'puppet/util/package' | |
| Puppet::Type.type(:xpack).provide(:yum) do | |
| desc "Installation of Exegy specific packages." | |
| has_feature :versionable |
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
| debug: Puppet::Type::Xpack::ProviderYum: Executing '/bin/rpm -q Co-TickerPlant-Core' | |
| info: 3.1.9-49562.10263.4.x86_64 | |
| info: Leaving Version | |
| /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:277:in `send' | |
| /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:277:in `retrieve' | |
| /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:720:in `retrieve' | |
| /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:715:in `each' | |
| /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:715:in `retrieve' | |
| /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:728:in `retrieve_resource' | |
| /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:32:in `perform_changes' |
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 | |
| Puppet.info("#{package}") | |
| version = rpm('-q', package) | |
| if version =~ /^#{Regexp.escape(package)}-(.*)(.*)/ | |
| Puppet.info("#{$1}") | |
| $1 | |
| 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 |
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
| 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
| # /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
| 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) | |
| { | |
| $ifname = $name | |
| # filename |