Puppet and Jenkins : Adding Jenkins slaves using puppet code.

0 votes
How can I add jenkins slaves if i am using jenkins module from the puppet forge. Can somebody help me with this?
Aug 28 in Puppet by clara
38 views

1 answer to this question.

0 votes

You can automatically add slaves to jenkins, and have them auto register themselves. Most options are actually optional, as nodes will auto-discover the master, and connect.

It requires the swarm plugin on the master & the class jenkins::slave on the slaves, as below:

node /jenkins-slave.*/ {
      class { 'jenkins::slave':
        masterurl => 'http://jenkins-master1.domain.com:8080',
        ui_user => 'adminuser',
        ui_pass => 'adminpass',
      }
    }

    node /jenkins-master.*/ {
        include jenkins
        include jenkins::master
    }

For a better understanding refer to https://forge.puppet.com/rtyler/jenkins/readme#slaves

answered Aug 28 by Sirajul
• 39,540 points

Related Questions In Puppet

0 votes
1 answer

Errors and warnings while installing graphite server using puppet.

Hey @Harish, If you puppet modules is /etc/puppet/modules, ...READ MORE

answered Feb 14 in Puppet by Varshi
26 views
0 votes
1 answer

How do I install factor and puppet using Ruby Gem?

Hey @Kiara, execute these commands to install ...READ MORE

answered Mar 8 in Puppet by Yogesh
61 views
0 votes
1 answer

Docker with Puppet: How do i run the following command "docker build -t ubuntu /tmp/ubuntu_image" using puppet code?

 Hey @Liana, Including the docker_dir parameter is equivalent to ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 39,540 points
31 views
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
219 views
0 votes
1 answer
0 votes
1 answer

Puppet and Jenkins: How can I manage Jenkins job using Puppet DSL?

Managing Jenkins jobs: Build jobs can be managed ...READ MORE

answered Aug 28 in Puppet by Sirajul
• 39,540 points
18 views
0 votes
1 answer

Puppet : Can i install jenkins on a puppet server using Git?

Installing puppet-jenkins is easy. To install via Git, ...READ MORE

answered Aug 9 in Puppet by Sirajul
• 39,540 points
37 views