Skip to content

Commit 7808556

Browse files
committed
Merge branch 'main' into rl9_v2
2 parents 29a0d2a + 74ca684 commit 7808556

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

.github/workflows/fatimage.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ jobs:
4848
cd packer/
4949
packer init .
5050
PACKER_LOG=1 packer build -only openstack.openhpc -on-error=${{ vars.PACKER_ON_ERROR }} -var-file=$PKR_VAR_environment_root/${{ vars.CI_CLOUD }}.pkrvars.hcl openstack.pkr.hcl
51-
env:
52-
TESTUSER_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}
5351
5452
- name: Get created image name from manifest
5553
id: manifest
@@ -60,5 +58,5 @@ jobs:
6058
sleep 30
6159
done
6260
IMAGE_NAME=$(openstack image show -f value -c name $IMAGE_ID)
63-
echo "::set-output name=IMAGE_ID::$IMAGE_ID"
64-
echo "::set-output name=IMAGE_NAME::$IMAGE_NAME"
61+
echo "IMAGE_ID=${IMAGE_ID}" >> "$GITHUB_OUTPUT"
62+
echo "IMAGE_NAME=${IMAGE_NAME}" >> "$GITHUB_OUTPUT"

ansible/roles/basic_users/library/terminate_user_sessions.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,11 @@ def run_module():
5656

5757
_, sessions_stdout, _ = module.run_command("loginctl --no-legend list-sessions", check_rc=True)
5858
for line in sessions_stdout.splitlines():
59-
try:
60-
session, uid, user = line.split()
61-
except ValueError:
62-
raise ValueError('failed to split "%s"' % line)
63-
59+
session_info = line.split()
60+
user = session_info[1]
61+
session_id = session_info[0]
6462
if user == module.params['user']:
65-
_, sessions_stdout, _ = module.run_command("loginctl terminate-session %s" % session, check_rc=True)
63+
_, sessions_stdout, _ = module.run_command("loginctl terminate-session %s" % session_id, check_rc=True)
6664
result['changed'] = True
6765

6866
# successful module exit:

environments/.caas/inventory/group_vars/all/cluster.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ appliances_state_dir: /var/lib/state
2323

2424
# Defaults for caas-provided extravars:
2525
cluster_project_manila_share: false
26-
cluster_home_manila_share: "{{ cluster_project_manila_share }}"
26+
cluster_home_manila_share: false

environments/.caas/inventory/group_vars/all/manila.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ caas_manila_home:
77

88
cluster_project_manila_share_name: azimuth-project-share
99
caas_manila_project:
10-
share_name: "{{ cluster_project_manila_share_name }}"
10+
share_name: "{{ cluster_project_manila_share_name | default('azimuth-project-share') }}"
11+
share_user: "{{ cluster_project_manila_share_user | default(omit) }}"
1112
mount_path: /project
1213
mount_user: root
1314
mount_group: root

0 commit comments

Comments
 (0)