Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate post-config #1

Closed
dmsimard opened this issue Nov 6, 2017 · 0 comments
Closed

Automate post-config #1

dmsimard opened this issue Nov 6, 2017 · 0 comments

Comments

@dmsimard
Copy link
Contributor

dmsimard commented Nov 6, 2017

See:

- name: oc adm policy add-cluster-role-to-user system:build-strategy-docker ausername
  oc_adm_policy_user:
    user: ausername
    resource_kind: cluster-role
    resource_name: system:build-strategy-docker
    state: present

- name: create project
  oc_project:
    state: present
    name: openshift-ops
    display_name: operations team project
    node_selector:
    -  top=secret
    -  noncustomer=True

- name: create registry serviceaccount
  oc_serviceaccount:
    name: registry
    namespace: default
    secrets:
    - docker-registry-config
    - registry-secret
  register: sa_out

  - name: get secrets of a service account
    oc_serviceaccount_secret:
      state: list
      service_account: builder
      namespace: default
    register: sasecretout

- name: List user's info
  oc_user:
    state: list
    username: johndoe
  register: user_johndoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant