Commit graph

656 commits

Author SHA1 Message Date
Kevin Fenzi
9006a36832 Update all calls to sudo to use 'become' and sudo_user to 'become_user' 2016-02-02 21:24:45 +00:00
Kevin Fenzi
4cafc2bd37 Fix all tasks to not use old action: statements. 2016-01-06 21:25:10 +00:00
Kevin Fenzi
ba75919326 Drop no longer used mysql_server task 2016-01-06 21:17:13 +00:00
Kevin Fenzi
e6eb5eae06 We no longer need, use or want the drbackup key 2016-01-06 21:13:57 +00:00
Patrick Uiterwijk
bf5c30b702 Revert "Instead of a custom task, use epel_customizationj"
This reverts commit 375eaa9ed4.
2015-12-20 01:57:27 +00:00
Patrick Uiterwijk
375eaa9ed4 Instead of a custom task, use epel_customizationj
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-12-20 01:51:03 +00:00
Patrick Uiterwijk
e3d9de7fe2 Cloud needs special EPEL7 repo files
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-12-20 01:38:45 +00:00
Kevin Fenzi
650b671878 Move persistent_cloud_new to just persistent_cloud as the old one isn't used anymore. 2015-12-14 19:26:36 +00:00
Kevin Fenzi
7de8f98de5 Fix up f23 cloud instances handling hopefully. 2015-12-14 19:21:41 +00:00
Kevin Fenzi
aebe90cc65 Move virthost from a task to a role.
Setup a variable for hosts we want nested virt enabled on (default false)
add task to setup that on ones we want
2015-12-10 22:36:13 +00:00
Kevin Fenzi
ce59208dd8 Another ntp call needs to use the new template 2015-12-09 02:17:55 +00:00
Kevin Fenzi
4de5695937 Have to move this so it runs on the right host(s) 2015-11-30 21:04:26 +00:00
Kevin Fenzi
c3f5b21427 Test some tasks to get fedora23 cloud instances working nicely with ansible. 2015-11-30 20:56:00 +00:00
Miroslav Suchý
b20035b183 use correct function to lookup ip addr 2015-11-30 09:56:57 +01:00
Miroslav Suchý
02faa0fa0e remove ip based entries from known_hosts as well 2015-11-30 09:20:50 +01:00
Miroslav Suchý
c9e9a21cf3 temporary disable failure check of growpart of 2nd partition
because on Fedora23 it returns rc 2 when it does not exist
2015-11-30 08:00:08 +01:00
Miroslav Suchý
80c68c7fd6 temporary disable failure check of growpart of 2nd partition
because on Fedora23 it returns rc 2 when it does not exist
2015-11-30 07:39:09 +01:00
Kevin Fenzi
031ef4de69 ignore errors here for the case of instances with selinux disabled. 2015-11-27 00:05:36 +00:00
Kevin Fenzi
b1c92166b5 Just drop this for now until we can figure out a good way to do it. 2015-11-16 19:55:24 +00:00
Kevin Fenzi
34eaee73e4 Move this over to setup where we have facts. 2015-11-16 19:52:33 +00:00
Kevin Fenzi
8daa51aa45 Add some logic to prep f23 cloud images for ansible. 2015-11-16 19:34:29 +00:00
Kevin Fenzi
213ff05f06 Another dnf/yum one here. 2015-11-09 17:58:55 +00:00
Kevin Fenzi
90df49dff3 Fix yum/dnf here. 2015-11-09 17:55:30 +00:00
Patrick Uiterwijk
b38aeb28de Put rhel* only on RHEL and epel* on el* 2015-10-12 14:12:06 +00:00
Patrick Uiterwijk
a57e7505b7 CentOS also can get EPEL6/7 2015-10-12 14:02:58 +00:00
Kevin Fenzi
db4bc1b01e Trying to adjust nc for rhel7 2015-09-26 00:41:41 +00:00
Kevin Fenzi
7dd8c4ec4f Fix path to openvpn client.conf 2015-09-26 00:20:13 +00:00
Kevin Fenzi
2873cdd427 Move all puppet_private stuff to ansible private so we can stop using puppet private. 2015-09-25 18:16:23 +00:00
Kevin Fenzi
2cf056f01b Tag all the various ntp tasks so we can run over all of them at once. 2015-09-07 15:53:13 +00:00
Kevin Fenzi
9a8425fe55 Have all these use the same ntp config 2015-07-23 20:05:39 +00:00
Kevin Fenzi
43017c255f Add a darkserver-dev instance to new cloud.
Also create a el7 growroot that handles the partitioning and xfs in our rhel7 image.
Drop the old darkserver-dev.cloud playbook and host vars.
Update master playbook.
2015-07-17 16:19:17 +00:00
Kevin Fenzi
1a85b731c4 Tag ssh keys play in cloud setup.
This allows us to run this over all the cloud nodes when a key changes.
2015-07-13 13:36:06 +00:00
Kevin Fenzi
fc9e58bf57 Set user_data here so we can avoid the stupid rhel/centos/fedora user and sudo 2015-06-24 22:27:03 +00:00
Patrick Uiterwijk
f43622c33c Migrate openstack over to fedorainfracloud.org
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-06-23 06:43:05 +00:00
Patrick Uiterwijk
5105b82c59 Fix other references to cloud net ids 2015-06-05 12:01:09 +00:00
Kevin Fenzi
af2f786498 Revert "Conditionalize this for fedora 22 which has only dnf, no yum."
Turns out we don't have facts gathered here, so this won't work.
Also, in the new cloud we don't need this task at all.

This reverts commit 69d865e7ff.
2015-06-02 13:44:32 +00:00
Kevin Fenzi
69d865e7ff Conditionalize this for fedora 22 which has only dnf, no yum. 2015-06-02 13:08:00 +00:00
Kevin Fenzi
e015807e72 Add the same logic as for virt hosts to cloud spin up. When new instance is made it gathers the key automatically. 2015-05-28 19:58:02 +00:00
Kevin Fenzi
b62619e9d3 Duh. Need to quote this because it's multiline 2015-05-28 19:42:53 +00:00
Kevin Fenzi
5b77fe91d2 Try |string 2015-05-28 19:23:46 +00:00
Kevin Fenzi
c495f031d3 ok, lets try |str filter here. 2015-05-28 19:05:46 +00:00
Kevin Fenzi
aed8829f96 I'm sure it can't be this easy, but will try adding a join filter here. 2015-05-28 18:19:54 +00:00
Kevin Fenzi
6ba003e4ea Need this local keyscan action to be a command. 2015-05-28 17:49:23 +00:00
Kevin Fenzi
c1bb97974b This is an attempt to gather initial ssh_host_key from new vms when they are made.
This avoids having to accept the key manually and allows playbooks making new
instances to complete without human intervention.
(If it works as desired)
2015-05-28 17:35:25 +00:00
Kevin Fenzi
275f4b5203 Change all instances of ansible_distribution_major_version to filter to int for comparisons. 2015-05-27 22:27:39 +00:00
Kevin Fenzi
76a3f8ad74 Try this. 2015-05-27 22:09:03 +00:00
Kevin Fenzi
a9a3db1d3b Fix this conditional to work right when ostree isn't defined. 2015-05-27 21:15:06 +00:00
Miroslav Suchý
b78d1f277e change the condition so it works even when the variable is not defined 2015-05-14 16:08:56 +02:00
Miroslav Suchý
f303f64dfe try this 2015-05-14 16:05:56 +02:00
Kevin Fenzi
109598f2d5 Missed a few cases for atomic 2015-05-13 23:41:35 +00:00