Ansible for administering Jenkins

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Ansible for administering Jenkins

gotviseryon
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

RE: Ansible for administering Jenkins

Samuli Saarinen

Hi,

 

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

 

br,

Samuli

 

From: [hidden email] <[hidden email]> On Behalf Of [hidden email]
Sent: 30. lokakuutata 2018 15:53
To: Jenkins Users <[hidden email]>
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 [hidden email].
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.

--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Ansible for administering Jenkins

gotviseryon
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).

On Tuesday, October 30, 2018 at 10:17:29 AM UTC-4, Samuli Saarinen wrote:

Hi,

 

Would these help: <a href="https://galaxy.ansible.com/search?keywords=jenkins&amp;order_by=-relevance&amp;page_size=10" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgalaxy.ansible.com%2Fsearch%3Fkeywords%3Djenkins%26order_by%3D-relevance%26page_size%3D10\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHpv41Bd35M0roA9bLla3-RMHlDew&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgalaxy.ansible.com%2Fsearch%3Fkeywords%3Djenkins%26order_by%3D-relevance%26page_size%3D10\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHpv41Bd35M0roA9bLla3-RMHlDew&#39;;return true;">https://galaxy.ansible.com/search?keywords=jenkins&order_by=-relevance&page_size=10

 

br,

Samuli

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xNdH2r-sCwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xNdH2r-sCwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com> On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xNdH2r-sCwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">gotvi...@...
Sent: 30. lokakuutata 2018 15:53
To: Jenkins Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xNdH2r-sCwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xNdH2r-sCwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/8140e51d-3fd9-48bb-bd79-0e65587c0a88%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/8140e51d-3fd9-48bb-bd79-0e65587c0a88%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/8140e51d-3fd9-48bb-bd79-0e65587c0a88%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/8140e51d-3fd9-48bb-bd79-0e65587c0a88%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Ansible for administering Jenkins

Victor Martinez
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 [hidden email].
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.