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, 2019 in Puppet by clara
1,158 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, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

–1 vote
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 15, 2019 in Puppet by Varshi
485 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, 2019 in Puppet by Yogesh
1,790 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, 2019 in Puppet by Sirajul
• 59,230 points
711 views
0 votes
1 answer
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,494 views
+2 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, 2019 in Puppet by Sirajul
• 59,230 points
540 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, 2019 in Puppet by Sirajul
• 59,230 points
533 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP