Ansible for administering Jenkins

54 views
Skip to first unread message

gotvi...@gmail.com

unread,
Oct 30, 2018, 9:53:04 AM10/30/18
to Jenkins Users
Hi,

Can we administer Jenkins using Ansible scripts?  If so, any pointers or can I get some sample scripts?

Samuli Saarinen

unread,
Oct 30, 2018, 10:17:29 AM10/30/18
to jenkins...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8140e51d-3fd9-48bb-bd79-0e65587c0a88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gotvi...@gmail.com

unread,
Oct 30, 2018, 1:30:18 PM10/30/18
to Jenkins Users
Thanks for the link Samuli.  I found this link.  But, am looking for a playbook to maintain the groups created and authenticated through Manage and Assign Roles (Role based authorization strategy).

Victor Martinez

unread,
Oct 30, 2018, 6:13:26 PM10/30/18
to Jenkins Users
JCasC might be a good way of automating it

There are some examples about configuring the Roles:

You can easily run the CLI, once installed the JCasC plugin to validate and apply the above configuration on the fly!
- <YOUR_JENKINS_URL>/cli/command/apply-configuration
- <YOUR_JENKINS_URL>/cli/command/check-configuration


And on the top of that if you'd like to use ansible you could write your own playbook/role to use it as wrapper

My 2 cents
Reply all
Reply to author
Forward
0 new messages