Skip to content

Commit

Permalink
Replace references to serverstack_cloud with ps6_cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
freyes committed Jan 16, 2025
1 parent e580fc3 commit f549eb0
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 30 deletions.
1 change: 0 additions & 1 deletion playbooks/base/post.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
name: upload-swift
vars:
zuul_log_path_shard_build: true
# zuul_log_cloud_config: '{{ serverstack_cloud }}'
zuul_log_cloud_config: '{{ artifact_cloud }}'
# zuul_log_partition: true
# 15552000 is 30 days * 6, or ~ 6 months
Expand Down
4 changes: 2 additions & 2 deletions playbooks/juju/cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
failed_when: false
- name: 'destroy controller'
shell: >
timeout 120 juju destroy-controller --destroy-all-models --destroy-storage -y {{ serverstack_cloud.region_name }}-{{ serverstack_cloud.region_name }}
timeout 120 juju destroy-controller --destroy-all-models --destroy-storage -y {{ ps6_cloud.region_name }}-{{ ps6_cloud.region_name }}
failed_when: false
- name: 'kill controller'
shell: >
juju kill-controller -t 120s -y {{ serverstack_cloud.region_name }}-{{ serverstack_cloud.region_name }}
juju kill-controller -t 120s -y {{ ps6_cloud.region_name }}-{{ ps6_cloud.region_name }}
failed_when: false
4 changes: 2 additions & 2 deletions playbooks/juju/post.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
failed_when: false
- name: 'destroy controller'
shell: >
timeout 240 juju destroy-controller --destroy-all-models --destroy-storage -y {{ serverstack_cloud.region_name }}-{{ serverstack_cloud.region_name }}
timeout 240 juju destroy-controller --destroy-all-models --destroy-storage -y {{ ps6_cloud.region_name }}-{{ ps6_cloud.region_name }}
failed_when: false
- name: 'kill controller'
shell: >
juju kill-controller -t 120s -y {{ serverstack_cloud.region_name }}-{{ serverstack_cloud.region_name }}
juju kill-controller -t 120s -y {{ ps6_cloud.region_name }}-{{ ps6_cloud.region_name }}
failed_when: false
8 changes: 4 additions & 4 deletions playbooks/juju/templates/clouds.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
clouds:
{{ serverstack_cloud.region_name }}:
{{ ps6_cloud.region_name }}:
type: openstack
auth-types: [userpass]
endpoint: {{ serverstack_cloud.auth.auth_url }}
endpoint: {{ ps6_cloud.auth.auth_url }}
regions:
{{ serverstack_cloud.region_name }}:
endpoint: {{ serverstack_cloud.auth.auth_url }}
{{ ps6_cloud.region_name }}:
endpoint: {{ ps6_cloud.auth.auth_url }}
16 changes: 8 additions & 8 deletions playbooks/juju/templates/credentials.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
credentials:
{{ serverstack_cloud.region_name }}:
default-region: {{ serverstack_cloud.region_name }}
{{ serverstack_cloud.auth.username }}:
{{ ps6_cloud.region_name }}:
default-region: {{ ps6_cloud.region_name }}
{{ ps6_cloud.auth.username }}:
auth-type: userpass
username: {{ serverstack_cloud.auth.username }}
password: {{ serverstack_cloud.auth.password }}
project-domain-name: {{ serverstack_cloud.auth.user_domain_name }}
tenant-name: {{ serverstack_cloud.auth.username }}
user-domain-name: {{ serverstack_cloud.auth.user_domain_name }}
username: {{ ps6_cloud.auth.username }}
password: {{ ps6_cloud.auth.password }}
project-domain-name: {{ ps6_cloud.auth.user_domain_name }}
tenant-name: {{ ps6_cloud.auth.username }}
user-domain-name: {{ ps6_cloud.auth.user_domain_name }}
6 changes: 3 additions & 3 deletions roles/juju-setup/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
src: clouds.yaml.j2
dest: clouds.yaml
- name: Add cloud
command: /snap/bin/juju add-cloud --client {{ serverstack_cloud.region_name }} clouds.yaml
command: /snap/bin/juju add-cloud --client {{ ps6_cloud.region_name }} clouds.yaml
- name: 'render credentials.yaml'
template:
src: credentials.yaml.j2
dest: credentials.yaml
- name: Add credential
command: /snap/bin/juju add-credential {{ serverstack_cloud.region_name }} --client -f credentials.yaml
command: /snap/bin/juju add-credential {{ ps6_cloud.region_name }} --client -f credentials.yaml
- name: Clone charm-test-infra
command: git clone https://github.com/openstack-charmers/charm-test-infra /home/ubuntu/charm-test-infra
- name: 'Bootstrap Controller'
Expand All @@ -81,7 +81,7 @@
--auto-upgrade=false \
--model-default=/home/ubuntu/charm-test-infra/juju-configs/model-default-serverstack.yaml \
--config=/home/ubuntu/charm-test-infra/juju-configs/controller-default.yaml \
{{ serverstack_cloud.region_name }}/{{ serverstack_cloud.region_name }}
{{ ps6_cloud.region_name }}/{{ ps6_cloud.region_name }}
- name: 'Add default juju model if needed'
shell:
cmd: |
Expand Down
2 changes: 1 addition & 1 deletion roles/upload-charm/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
when: needs_charm_build and
(charm_archived.rc is defined and charm_archived.rc == 0)
zuul_swift_upload:
cloud: "{{ serverstack_cloud }}"
cloud: "{{ ps6_cloud }}"
partition: "false"
container: "zuul-built-charms"
public: "yes"
Expand Down
18 changes: 9 additions & 9 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
provides: charm
run: playbooks/charm/build.yaml
secrets:
- serverstack_cloud
- ps6_cloud
nodeset:
nodes:
- name: jammy-medium
Expand All @@ -219,7 +219,7 @@
post-run: playbooks/juju/post.yaml
cleanup-run: playbooks/juju/cleanup.yaml
secrets:
- serverstack_cloud
- ps6_cloud

- job:
name: func-target
Expand Down Expand Up @@ -315,11 +315,11 @@
OS_VIP19: "{{ network }}.249"
OS_VIP20: "{{ network }}.250"
VIP_RANGE: "{{ network }}.230:{{ network }}.250"
OS_AUTH_URL: "{{ serverstack_cloud.auth.auth_url }}"
OS_USERNAME: "{{ serverstack_cloud.auth.username }}"
OS_PASSWORD: "{{ serverstack_cloud.auth.password }}"
OS_USER_DOMAIN_NAME: "{{ serverstack_cloud.auth.user_domain_name }}"
OS_PROJECT_NAME: "{{ serverstack_cloud.auth.project_name }}"
OS_AUTH_URL: "{{ ps6_cloud.auth.auth_url }}"
OS_USERNAME: "{{ ps6_cloud.auth.username }}"
OS_PASSWORD: "{{ ps6_cloud.auth.password }}"
OS_USER_DOMAIN_NAME: "{{ ps6_cloud.auth.user_domain_name }}"
OS_PROJECT_NAME: "{{ ps6_cloud.auth.project_name }}"
OS_PROJECT_DOMAIN_NAME: user
OS_AUTH_VERSION: 3
OS_IDENTITY_API_VERSION: 3
Expand Down Expand Up @@ -357,7 +357,7 @@
TEST_REGISTRY_PREFIX: "10.245.164.190:5000"
tox_envlist: func-target
secrets:
- serverstack_cloud
- ps6_cloud
- purestorage_api_token
- netapp_vsadmin_password

Expand Down Expand Up @@ -816,7 +816,7 @@
post-review: true
run: playbooks/charm/publish.yaml
secrets:
- serverstack_cloud
- ps6_cloud
- charmhub_token
nodeset:
nodes:
Expand Down

0 comments on commit f549eb0

Please sign in to comment.