Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
377e69d7
Commit
377e69d7
authored
4 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
moving unpriviliged user handling of ansible to test stage only
Former-commit-id:
983701eb
parent
dc25023f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-2
3 additions, 2 deletions
.gitlab-ci.yml
CICD/ansible.cfg
+0
-2
0 additions, 2 deletions
CICD/ansible.cfg
with
3 additions
and
4 deletions
.gitlab-ci.yml
+
3
−
2
View file @
377e69d7
...
...
@@ -108,13 +108,13 @@ ansible_create_cluster_stage:
-
echo "ansible_create_cluster_stage"
-
bash -x ./CICD/ansible_create_cluster_script.sh
-
cd CICD
-
ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem --skip-tags
monitoring
master_playbook.yml
-
ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem --skip-tags
SiteSpecific
master_playbook.yml
-
sleep
15
-
echo uglyuglyfix
-
ansible -i files/inventory.$STACKNAME --key-file ../gc_key.pem -b -a "systemctl restart slurmdbd" ManagementNodes
-
sleep
60
-
echo do it again
-
ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem --skip-tags
monitoring
master_playbook.yml
-
ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem --skip-tags
SiteSpecific
master_playbook.yml
tests
:
...
...
@@ -134,6 +134,7 @@ tests:
-
grep -qv "I could not find any resouces tagged with project_name:" ./files/inventory.$STACKNAME
#fail if inventory file is empty
-
ansible -m ping -i files/inventory.$STACKNAME --key-file ../gc_key.pem all
-
ansible -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "sudo ls" all
-
echo -e '[defaults]\r\nallow_world_readable_tmpfiles = True' > ansible.cfg
# Need to find a better check for sinfo
#- ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "find /opt/ -name sinfo -type f" ManagementNodes
#- ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "find /opt/ -name squeue -type f" ManagementNodes
...
...
This diff is collapsed.
Click to expand it.
CICD/ansible.cfg
deleted
100644 → 0
+
0
−
2
View file @
dc25023f
[defaults]
allow_world_readable_tmpfiles
= True
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment