From f584ebdae201b0d4a26fcadb5b4bc6447995c658 Mon Sep 17 00:00:00 2001 From: casc-ws-test-2022 Date: Wed, 27 Jul 2022 11:12:39 +0000 Subject: [PATCH] adding variables updates for variables lab --- bundle/bundle.yaml | 8 ++++---- bundle/rbac.yaml | 46 ------------------------------------------- bundle/variables.yaml | 4 ++++ 3 files changed, 8 insertions(+), 50 deletions(-) delete mode 100644 bundle/rbac.yaml create mode 100644 bundle/variables.yaml diff --git a/bundle/bundle.yaml b/bundle/bundle.yaml index bf88bea..470e11d 100644 --- a/bundle/bundle.yaml +++ b/bundle/bundle.yaml @@ -1,10 +1,10 @@ apiVersion: "1" -version: "3" +version: "4" id: "casc-ws-test-2022-dev-controller" description: "CloudBees CI configuration bundle for the casc-ws-test-2022 dev-controller Controller" availabilityPattern: "cloudbees-ci-casc-workshop/casc-ws-test-2022/dev-controller" -parent: "base" -rbac: - - "rbac.yaml" +parent: "rbac-base" items: - "folder.yaml" +variables: + - "variables.yaml" diff --git a/bundle/rbac.yaml b/bundle/rbac.yaml deleted file mode 100644 index c6f1272..0000000 --- a/bundle/rbac.yaml +++ /dev/null @@ -1,46 +0,0 @@ -removeStrategy: - rbac: SYNC -roles: -- name: authenticated - filterable: 'true' - permissions: - - hudson.model.Hudson.Read - - hudson.model.Item.Read - - hudson.model.View.Read -- name: administrator - permissions: - - hudson.model.Hudson.Administer -- name: manager - filterable: 'true' - permissions: - - hudson.model.Hudson.SystemRead - - hudson.model.Hudson.Manage - - com.cloudbees.plugins.credentials.CredentialsProvider.View - - com.cloudbees.pipeline.governance.templates.catalog.TemplateCatalogAction.ViewCatalogs - - com.cloudbees.jenkins.plugin.metrics.views.Alerter.View - - nectar.plugins.rbac.groups.Group.View - - nectar.plugins.rbac.roles.Role.View -- name: job-manager - filterable: 'true' - permissions: - - hudson.model.Item.Read - - hudson.model.Item.Create - - hudson.model.Item.Configure - - hudson.model.Item.Build -groups: -- name: Administrators - members: - users: - - admin - - team-admin - - "mpolak-cloudbees-admin" - roles: - - name: administrator - grantedAt: current -- name: Managers - members: - users: - - "mpolak-cloudbees" - roles: - - name: manager - grantedAt: current diff --git a/bundle/variables.yaml b/bundle/variables.yaml new file mode 100644 index 0000000..65c8b3e --- /dev/null +++ b/bundle/variables.yaml @@ -0,0 +1,4 @@ +variables: +- team: casc-ws-test-2022 +- admin-user: mpolak-cloudbees-admin +- manager-user: mpolak-cloudbees