This is a lightning talk I gave in the Chef track during cfgmgmtcamp.eu 2015 in Gent.
In the talk I reflect on the differences in Chef and Puppet I have to deal with on a daily basis.
2. class {‘::work’:
company => ‘Inuits’,
role => ‘Open Source Consultant’,
contact => ‘daniel@inuits.eu’,
}
social ‘daniel’ do
twitter @dpnl87
github dpnl87
web danielpaulus.com
end
3. » puppet module generate chef-server
Puppet uses Semantic Versioning (semver.org) to version modules.
What version is this module? [0.1.0]
Who wrote this module? [chef]
--> Daniel Paulus
What license does this module code fall under? [Apache 2.0]
How would you describe this module in a single sentence?
--> Install a chef-server
Where is this module's source code repository?
--> http://github.com/dpnl87/puppet-chef-server
Where can others go to learn more about this module? [https://
github.com/dpnl87/puppet-chef-server]
--> http://github.com/dpnl87/puppet-chef-server
» chef generate cookbook chef-server
-C "Daniel Paulus”
-m "daniel@inuits.eu"
-I apache2
9. yum_repository 'Repository' do
description 'Repository'
baseurl node['repository']
gpgkey 'signing.key'
action :create
end
!
package node['package_name'] do
action :install
end
10.
11. yumrepo { 'Repository':
descr => 'Repository',
enabled => 1,
gpgcheck => 1,
gpgkey => 'signing.key',
baseurl => "${repository}",
}
!
package { “${package_name}":
ensure => 'installed',
}
Error: /Stage[main]/Package[package_name]/ensure: change from absent
to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list
pacakge_name’ returned 1: Error: xz compression not available