Configuring r10k and Control Repository for Puppetserver

Configuring r10k and Control Repository for Puppetserver

- 3 mins

What is r10k?

Steps

Install and configure r10k to Puppetserver

root@puppet-master:~/playground# /opt/puppetlabs/puppet/bin/ruby -v
ruby 2.5.9p229 (2021-04-05 revision 67939) [x86_64-linux]
root@puppet-master:~/playground# /opt/puppetlabs/puppet/bin/gem -v
2.7.6.3
/opt/puppetlabs/puppet/bin/gem install --no-rdoc r10k -v 3.0.0

r10k

Create a new repository and pushing the code

mkdir /etc/puppetlabs/r10k

r10k

 ---
 :cachedir: '/var/cache/r10k'

 :sources:
         :itvraag:
                 remote: 'https://github.com/guneycansanli/puppet_control_repo.git'
                 basedir: '/etc/puppetlabs/code/environments'

r10k

Pulling the code to Pupperserver via r10k

/opt/puppetlabs/puppet/bin/r10k deploy environment -pv debug 

r10k

Running agent

puppet agent -t --environment=main
puppet agent -t --environment=production
puppet agent -t --environment

r10k



:metal: :metal: :metal: :metal: :metal: :metal: :metal:


Guneycan Sanli.


Guneycan Sanli

Guneycan Sanli

A person who like learning, music, travelling and sports.

comments powered by Disqus