Skip to content

Instantly share code, notes, and snippets.

@apple-corps
Created July 21, 2014 18:22
Show Gist options
  • Save apple-corps/ca358e5cd6e11ca221ac to your computer and use it in GitHub Desktop.
Save apple-corps/ca358e5cd6e11ca221ac to your computer and use it in GitHub Desktop.
Cannot install puppet module maestrodev-avahi-1.1.0
puppet apply -e maestrodev-avahi-1.1.0
Error: Could not parse for environment production: Syntax error at '.' at line 1 on node rhel1.local
@apple-corps
Copy link
Author

puppet apply -e 'include avahi'
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for rhel1.local in environment production in 0.47 seconds
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
(at /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:816:in `set_default')
Notice: /Stage[main]/Avahi::Package::Redhat/Package[avahi-glib]/ensure: created
Notice: /Stage[main]/Avahi::Package::Redhat/Package[avahi-compat-libdns_sd]/ensure: created
Notice: /Stage[main]/Avahi::Package::Redhat/Package[avahi-gobject]/ensure: created
Notice: /Stage[main]/Avahi::Package::Redhat/Package[avahi-autoipd]/ensure: created
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list nss-mdns' returned 1: Error: No matching Packages to list
Error: /Stage[main]/Avahi::Package::Redhat/Package[nss-mdns]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list nss-mdns' returned 1: Error: No matching Packages to list
Notice: /Stage[main]/Avahi::Package::Redhat/Package[avahi-tools]/ensure: created
Notice: /Stage[main]/Avahi::Service/Avahi::Service::Redhat/Service[messagebus]: Dependency Package[nss-mdns] has failures: true
Warning: /Stage[main]/Avahi::Service/Avahi::Service::Redhat/Service[messagebus]: Skipping because of failed dependencies
Notice: /Stage[main]/Avahi::Service/Avahi::Service::Redhat/Service[messagebus]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Avahi::Service/Service[avahi-daemon]: Dependency Package[nss-mdns] has failures: true
Warning: /Stage[main]/Avahi::Service/Service[avahi-daemon]: Skipping because of failed dependencies
Notice: /Stage[main]/Avahi::Service/Service[avahi-daemon]: Triggered 'refresh' from 2 events
Notice: Finished catalog run in 20.14 seconds

@apple-corps
Copy link
Author

puppet apply -e 'include avahi'
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for rhel1.local in environment production in 0.39 seconds
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
(at /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:816:in `set_default')
Notice: /Stage[main]/Avahi::Package::Redhat/Package[nss-mdns]/ensure: created
Notice: /Stage[main]/Avahi::Service::Redhat/Service[messagebus]: Triggered 'refresh' from 1 events
Error: Could not start Service[avahi-daemon]: Execution of '/sbin/service avahi-daemon start' returned 1: Starting Avahi daemon... [FAILED]
Wrapped exception:
Execution of '/sbin/service avahi-daemon start' returned 1: Starting Avahi daemon... [FAILED]
Error: /Stage[main]/Avahi::Service/Service[avahi-daemon]/ensure: change from stopped to running failed: Could not start Service[avahi-daemon]: Execution of '/sbin/service avahi-daemon start' returned 1: Starting Avahi daemon... [FAILED]
Notice: /Stage[main]/Avahi::Service/Service[avahi-daemon]: Triggered 'refresh' from 2 events
Notice: Finished catalog run in 34.63 seconds

@apple-corps
Copy link
Author

Jul 21 12:16:42 rhel1 avahi-daemon[5284]: SO_REUSEPORT failed: Protocol not available
Jul 21 12:16:42 rhel1 avahi-daemon[5284]: Failed to create server: No suitable network protocol available

@apple-corps
Copy link
Author

sudo rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

yum install puppet

puppet module install 'maestrodev-avahi'

puppet apply -e 'include avahi'

sed -i 's|^#(disallow-other-stacks=)no|\1yes|g' /etc/avahi/avahi-daemon.conf

avahi-autoipd -D

@apple-corps
Copy link
Author

Can install it now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment