Miroslav Suchý
02dd348fe1
do not report check as changed
2020-04-24 21:34:25 +02:00
Miroslav Suchý
19be5b46cb
add task to create swap
...
This is mostly useful in AWS where swap does not exist and must be created manualy.
2020-04-24 21:34:25 +02:00
Mikolaj Izdebski
4aa2caa088
aws_cloud: import basessh role
2020-04-24 21:34:24 +02:00
Pavel Raiskup
7c98df7a75
aws_cloud: don't hack the keys more
...
This is done by basessh role.
2020-04-24 21:34:24 +02:00
Pavel Raiskup
ae21353b07
copr-be-dev-aws: another try with birthday
2020-04-24 21:34:24 +02:00
Pavel Raiskup
d0e45f67fa
aws_cloud: conditionalize things by birthday
2020-04-24 21:34:24 +02:00
Jakub Kadlcik
68a1821b9b
remove whitespace, it annoys me
2020-04-24 21:34:24 +02:00
Jakub Kadlcik
a78b7c92e1
copr: move iptables disabling directly to frontend role
2020-04-24 21:34:24 +02:00
Pavel Raiskup
f9934ce398
aws_cloud: don't run basessh role
...
It is done in cloud_setup_basic.yml.
2020-04-24 21:34:24 +02:00
Jakub Kadlcik
43c8acf835
copr: make sure iptables are disabled
...
For some reason they can be started even if
baseiptables: False
maybe because the variable was initially set to True
and then switched to False, so the iptables were
already enabled.
2020-04-24 21:34:24 +02:00
Pavel Raiskup
f84a1ea988
cloud_setup_basic: unmask tmp.mount
...
Since we enable logrotate automatically on all infrastructure VMs (if
Fedora), it requires tmp.mount unmasked nowadays.
2020-04-24 21:34:24 +02:00
Jakub Kadlcik
234ac60c3b
copr: actually, use baseiptables variable to disable iptables
2020-04-24 21:34:24 +02:00
Jakub Kadlcik
1e5692ce9b
stopping iptables probably isn't enough, let's mask it
2020-04-24 21:34:24 +02:00
Jakub Kadlcik
e7c0bc201e
disable iptables in aws, we have security groups
2020-04-24 21:34:24 +02:00
Pavel Raiskup
450688a699
aws_cloud.yml: more python3/fedora hacks
2020-04-24 21:34:23 +02:00
Pavel Raiskup
38b299509a
aws_cloud.yml: rely on python3 for now
2020-04-24 21:34:23 +02:00
Pavel Raiskup
99db42b520
aws_cloud.yml: install python-libselinux, not libselinux-python
2020-04-24 21:34:23 +02:00
Pavel Raiskup
7d30662023
copr: add aws_cloud.yml task replacing persistent_cloud.yml
...
And use it in copr-backend.yml playbook.
2020-04-24 21:34:23 +02:00
Miroslav Suchý
c96b973b60
remove deprecation warning
...
addressing:
TASK [Install desired extra packages (dnf)] *********************************************************************************************
Friday 14 February 2020 14:03:04 +0000 (0:00:00.062) 0:00:12.297 *******
[DEPRECATION WARNING]: Invoking "dnf" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply
multiple items and specifying `pkg: "{{ item }}"`, please use `pkg: ['ntpdate', 'libselinux-python']` and remove the loop. This feature
will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
2020-04-24 21:34:23 +02:00
Miroslav Suchý
d2ce8afd46
do not modify fedora*.repo when deploying in AWS
2020-04-24 21:34:23 +02:00
Kevin Fenzi
13d5177ce4
virt_instance_create: drop duplicate facts dropping and add a new task to gather at the end.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:20 +02:00
Miroslav Suchý
264ddd3306
add tag, without a tag this load is skipped when using -t config
2020-04-24 21:34:19 +02:00
Miroslav Suchý
b46e36ec41
include all/vars only once
...
and there is no need to load it in every playbook in pre_tasks
2020-04-24 21:34:19 +02:00
Kevin Fenzi
47421b9dd6
revert this back to python3.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:19 +02:00
Kevin Fenzi
4b79a0f2ae
virt-instance-create: move this back to python2 long enough to install buildvm-armv7-01.stg on a old moonshot cart and then revert it.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:19 +02:00
Kevin Fenzi
78223d74be
virt_instance_create: try and remove facts cache for new vms again now that we hopefully have the python autodetect working more or less
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:18 +02:00
Kevin Fenzi
e18670cf00
virt-instance-create: try this since the other isn't cached.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:17 +02:00
Kevin Fenzi
6cc64cbff1
virt-instance-create: The variable should be a variable too.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:17 +02:00
Kevin Fenzi
e398046ebb
virt-instance-create: this is a var
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:17 +02:00
Kevin Fenzi
95e0ad16d9
virt-instance-create: try and get this to use the vmhost python, not the vm
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:17 +02:00
Kevin Fenzi
9d1e6bf031
virt_instance_create: make sure to wipe the facts cache if we are (re)installing the guest
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:16 +02:00
Kevin Fenzi
3fbe452116
yumrepos: try and adjust for secondary/primary stuff.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:16 +02:00
Rick Elrod
2a90d25c7b
Revert "one more attempt at a "small" hack before I go all out"
...
This reverts commit 32c4ddd306bbca2e0315d2f0c1205ea8a3f19d8b.
2020-04-24 21:34:15 +02:00
Rick Elrod
626dff9ec3
one more attempt at a "small" hack before I go all out
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
7c2274b851
undo all that
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
bb74f4d89b
trying more sillyness to try to bust the cache here
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
1bff4950f3
wait a second
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
e4a8e812e2
what if I set it to something completely whacky?
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
f804fb2746
hardcode this for a sec, just to see
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
142017e95a
try another hack
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Rick Elrod
e500af0b27
try setting ansible_python_interpreter to !!null
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Kevin Fenzi
0475be45de
virt_instance_create: try and gather facts after virt instance is created...
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:15 +02:00
Kevin Fenzi
ffc0163b32
Revert "armv7 create: move back to python2 and hope it works again."
...
This reverts commit f2591ca94c98799ce7b52328172dac8c150ca261.
2020-04-24 21:34:15 +02:00
Kevin Fenzi
0d50e06b94
armv7 create: move back to python2 and hope it works again.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:15 +02:00
Kevin Fenzi
5424ee4fa2
virt_instance_create: try python3 here.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:14 +02:00
Kevin Fenzi
b23d6d295b
Revert "virt_instance_create: The emags use python3 here."
...
This reverts commit ca4ea658788af7902329620f6f98a680fc02f936.
2020-04-24 21:34:14 +02:00
Kevin Fenzi
fc5ea0b944
virt_instance_create: The emags use python3 here.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:14 +02:00
Kevin Fenzi
70a711c577
yumrepos: also install infra-tags repo on maintainer-test.
...
We removed it a while back because our local mock was causing problems, thats not the case anymore.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:13 +02:00
Kevin Fenzi
31e67c36f2
cloud_setup_basic: Don't install libselinux-python here either.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:13 +02:00
Kevin Fenzi
86bfee4ab4
yumrepos: likewise clean up logic on base fedora repos and exclude rawhide test.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:13 +02:00