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,352 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
744 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
2,163 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
1,001 views
0 votes
1 answer

Puppet+Kubernetes: How do I use kubetool and what is it's significance in using kubernetes with puppet?

The module puppetlabs/kubernetes has Kubetool, which is ...READ MORE

answered Aug 21, 2019 in Puppet by Sirajul
• 59,230 points
1,168 views
+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
4,024 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
764 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
699 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