openqa: test sourcing server data from NFS on stg
Well hey, let's hope this works!
This commit is contained in:
parent
b51e955e29
commit
b718b8fbd4
2 changed files with 41 additions and 4 deletions
|
@ -32,6 +32,34 @@
|
|||
# set, the server will use a local SQLite database and the other values
|
||||
# are ignored.
|
||||
|
||||
# As we want to store some geekotest-owned files in shared storage, we
|
||||
# need to ensure geekotest always has the same uid/gid if we re-deploy
|
||||
# the servers. So we create the account here with uid/gid 601.
|
||||
|
||||
# this first one is just to make sure I don't screw up prod while I'm
|
||||
# fiddling with this stuff on stg
|
||||
- name: Check if geekotest already exists (temp)
|
||||
command: "getent passwd geekotest"
|
||||
register: gotgeeko
|
||||
failed_when: "1 != 1"
|
||||
changed_when: "1 != 1"
|
||||
always_run: true
|
||||
|
||||
- name: Create geekotest group with static GID 601
|
||||
group: name=geekotest gid=601 system=yes
|
||||
when: "gotgeeko.rc > 0"
|
||||
|
||||
- name: Create geekotest user with static UID 601
|
||||
user:
|
||||
name: geekotest
|
||||
comment: "openQA user"
|
||||
uid: 601
|
||||
home: "/var/lib/openqa"
|
||||
createhome: no
|
||||
system: yes
|
||||
shell: /sbin/nologin
|
||||
when: "gotgeeko.rc > 0"
|
||||
|
||||
- name: Install required packages
|
||||
dnf: name={{ item }} state=present enablerepo=adamwill-openQA
|
||||
with_items:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue