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 [email protected].
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.

Reply via email to