Discussion:
Ansible for administering Jenkins
g***@gmail.com
2018-10-30 13:53:04 UTC
Permalink
Hi,

Can we administer Jenkins using Ansible scripts? If so, any pointers or
can I get some sample scripts?
--
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-users+***@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.
Samuli Saarinen
2018-10-30 14:17:12 UTC
Permalink
Hi,

Would these help: https://galaxy.ansible.com/search?keywords=jenkins&order_by=-relevance&page_size=10

br,
Samuli

From: jenkinsci-***@googlegroups.com <jenkinsci-***@googlegroups.com> On Behalf Of ***@gmail.com
Sent: 30. lokakuutata 2018 15:53
To: Jenkins Users <jenkinsci-***@googlegroups.com>
Subject: Ansible for administering Jenkins

Hi,

Can we administer Jenkins using Ansible scripts? If so, any pointers or can I get some sample scripts?
--
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-users+***@googlegroups.com<mailto:jenkinsci-users+***@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<https://groups.google.com/d/msgid/jenkinsci-users/8140e51d-3fd9-48bb-bd79-0e65587c0a88%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/HE1PR03MB1161CDF26F9F2895A49D17158BCC0%40HE1PR03MB1161.eurprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2018-10-30 17:30:18 UTC
Permalink
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).
Post by Samuli Saarinen
Hi,
https://galaxy.ansible.com/search?keywords=jenkins&order_by=-relevance&page_size=10
br,
Samuli
*Sent:* 30. lokakuutata 2018 15:53
*Subject:* Ansible for administering Jenkins
Hi,
Can we administer Jenkins using Ansible scripts? If so, any pointers or
can I get some sample scripts?
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/8140e51d-3fd9-48bb-bd79-0e65587c0a88%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/8140e51d-3fd9-48bb-bd79-0e65587c0a88%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/355a2e2f-8baa-4268-ac6c-d6936a84d1bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Victor Martinez
2018-10-30 22:13:25 UTC
Permalink
JCasC might be a good way of automating it
- https://wiki.jenkins.io/display/JENKINS/Configuration+as+Code+Plugin

There are some examples about configuring the Roles:
- https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/integrations/src/test/resources/io/jenkins/plugins/casc/RoleStrategy1.yml
- https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/integrations/src/test/resources/io/jenkins/plugins/casc/RoleStrategy2.yml

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
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/06c58cbb-a7a9-46a4-ac33-c2cb832fcf6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...