security.addRole(
"Administrators",
"nx-admin-ldap",
"Administrator Role (mapped from LDAP Administrators)",
privileges: [],
roles: ["nx-admin"])
if (!security.securitySystem.listRoles().any { it.roleId == "Administrators" }) {
if (!security.securitySystem.listRoles().any { it.roleId == "Administrators" && it.source == "default" }) {
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/65422ba8-406c-4966-9a0a-9f13f5733ba3%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/ab375050-caf3-421a-b59a-cd21ab7ace8f%40glists.sonatype.com.
Thank Rui!This is starting to worry me, we are relying on the anisble playbook to manage the configuration of our Nexus deployments (Master server and numerous proxies distributed worldwide), seems like something is not fully "commited" when changes are made using the groovy scripts and it causes the changes to be discarded/reversed when Nexus restarts.Since this is reoccuring (on at least 2 unrelated installation), can someone from Sonatype take a look? should we open a ticket? what additional info is required?
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/CACrQNsNqV7opRKVPKQyqiTdCCOv%3DJ6Vsc0eO%2BzzFZ3PHPijfvg%40mail.gmail.com.
Peter, my original question, with the simplest script I could write, is at https://groups.google.com/a/glists.sonatype.com/forum/#!topic/nexus-users/6BszuArYf-I.