diff options
Diffstat (limited to 'playbooks/adhoc')
| -rw-r--r-- | playbooks/adhoc/bootstrap-fedora.yml | 2 | ||||
| -rw-r--r-- | playbooks/adhoc/grow_docker_vg/grow_docker_vg.yml | 4 | ||||
| -rw-r--r-- | playbooks/adhoc/s3_registry/s3_registry.j2 | 7 | ||||
| -rw-r--r-- | playbooks/adhoc/s3_registry/s3_registry.yml | 6 | ||||
| -rw-r--r-- | playbooks/adhoc/uninstall.yml | 4 | 
5 files changed, 16 insertions, 7 deletions
diff --git a/playbooks/adhoc/bootstrap-fedora.yml b/playbooks/adhoc/bootstrap-fedora.yml index de9f36c8a..0df77e309 100644 --- a/playbooks/adhoc/bootstrap-fedora.yml +++ b/playbooks/adhoc/bootstrap-fedora.yml @@ -1,4 +1,4 @@ -- hosts: OSv3 +- hosts: OSEv3    gather_facts: false    tasks:      - name: install python and deps for ansible modules diff --git a/playbooks/adhoc/grow_docker_vg/grow_docker_vg.yml b/playbooks/adhoc/grow_docker_vg/grow_docker_vg.yml index 174cea460..d24e9cafa 100644 --- a/playbooks/adhoc/grow_docker_vg/grow_docker_vg.yml +++ b/playbooks/adhoc/grow_docker_vg/grow_docker_vg.yml @@ -20,7 +20,7 @@  #   ansible-playbook -e 'cli_tag_name=ops-compute-12345' grow_docker_vg.yml  #  #  Notes: -#  * By default this will do a 55GB GP2 volume.  The can be overidden with the "-e 'cli_volume_size=100'" variable +#  * By default this will do a 200GB GP2 volume.  The can be overidden with the "-e 'cli_volume_size=100'" variable  #  * This does a GP2 by default.  Support for Provisioned IOPS has not been added  #  * This will assign the new volume to /dev/xvdc. This is not variablized, yet.  #  * This can be done with NO downtime on the host @@ -36,7 +36,7 @@    vars:      cli_volume_type: gp2 -    cli_volume_size: 55 +    cli_volume_size: 200  #    cli_volume_iops: "{{ 30 * cli_volume_size }}"    pre_tasks: diff --git a/playbooks/adhoc/s3_registry/s3_registry.j2 b/playbooks/adhoc/s3_registry/s3_registry.j2 index acfa89515..10454ad11 100644 --- a/playbooks/adhoc/s3_registry/s3_registry.j2 +++ b/playbooks/adhoc/s3_registry/s3_registry.j2 @@ -9,12 +9,15 @@ storage:    s3:      accesskey: {{ aws_access_key }}      secretkey: {{ aws_secret_key }} -    region: us-east-1 -    bucket: {{ clusterid }}-docker +    region: {{ aws_bucket_region }} +    bucket: {{ aws_bucket_name }}      encrypt: true      secure: true      v4auth: true      rootdirectory: /registry +auth: +  openshift: +    realm: openshift  middleware:    repository:      - name: openshift diff --git a/playbooks/adhoc/s3_registry/s3_registry.yml b/playbooks/adhoc/s3_registry/s3_registry.yml index d409b4086..0814efae2 100644 --- a/playbooks/adhoc/s3_registry/s3_registry.yml +++ b/playbooks/adhoc/s3_registry/s3_registry.yml @@ -1,7 +1,7 @@  ---  # This playbook creates an S3 bucket named after your cluster and configures the docker-registry service to use the bucket as its backend storage.  # Usage: -#  ansible-playbook s3_registry.yml -e clusterid="mycluster" +#  ansible-playbook s3_registry.yml -e clusterid="mycluster" -e aws_bucket="clusterid-docker" -e aws_region="us-east-1"  #  # The AWS access/secret keys should be the keys of a separate user (not your main user), containing only the necessary S3 access role.  # The 'clusterid' is the short name of your cluster. @@ -13,6 +13,8 @@    vars:      aws_access_key: "{{ lookup('env', 'S3_ACCESS_KEY_ID') }}"      aws_secret_key: "{{ lookup('env', 'S3_SECRET_ACCESS_KEY') }}" +    aws_bucket_name: "{{ aws_bucket | default(clusterid ~ '-docker') }}" +    aws_bucket_region: "{{ aws_region | lookup('env', 'S3_REGION') | default('us-east-1') }}"    tasks: @@ -29,7 +31,7 @@    - name: Create S3 bucket      local_action: -      module: s3 bucket="{{ clusterid }}-docker" mode=create +      module: s3 bucket="{{ aws_bucket_name }}" mode=create    - name: Set up registry environment variable      command: oc env dc/docker-registry REGISTRY_CONFIGURATION_PATH=/etc/registryconfig/config.yml diff --git a/playbooks/adhoc/uninstall.yml b/playbooks/adhoc/uninstall.yml index ac20f5f9b..36d686c8b 100644 --- a/playbooks/adhoc/uninstall.yml +++ b/playbooks/adhoc/uninstall.yml @@ -202,6 +202,10 @@          - /usr/lib/systemd/system/atomic-openshift-master-controllers.service          - /usr/lib/systemd/system/origin-master-api.service          - /usr/lib/systemd/system/origin-master-controllers.service +        - /usr/local/bin/openshift +        - /usr/local/bin/oadm +        - /usr/local/bin/oc +        - /usr/local/bin/kubectl      # Since we are potentially removing the systemd unit files for separated      # master-api and master-controllers services, so we need to reload the  | 
