]>
git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Andrew Schoen [Wed, 1 Apr 2015 14:52:10 +0000 (09:52 -0500)]
Updates to make centos 7.0 provision correctly.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 1 Apr 2015 14:14:32 +0000 (09:14 -0500)]
Customized the centos 7 sshd_config
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 1 Apr 2015 14:11:22 +0000 (09:11 -0500)]
Adds a stock centos 7 sshd_config
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 31 Mar 2015 21:36:05 +0000 (16:36 -0500)]
Touch /etc/fuse.conf so it's created if not present; tag sudoers play
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 31 Mar 2015 21:35:36 +0000 (16:35 -0500)]
Fix path issues for a couple templates
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 31 Mar 2015 21:32:33 +0000 (16:32 -0500)]
Force symlink creation of /usr/bin/lspci
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 31 Mar 2015 19:59:45 +0000 (14:59 -0500)]
Set package lists for centos 6 and 7
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 31 Mar 2015 16:48:24 +0000 (11:48 -0500)]
Add sshd_config for centos 6; make sshd_config major version specific.
We used to store sshd_configs for each minor version of a distro, which
was not necessary. This changes those to major version specific
sshd_configs per distro.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 31 Mar 2015 16:43:50 +0000 (11:43 -0500)]
Added a stock centos 6.5 sshd_config
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 31 Mar 2015 16:15:38 +0000 (11:15 -0500)]
Reorganize things common to all yum systems into it's own task.
This also includes incomplete centos support.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Mon, 30 Mar 2015 20:38:39 +0000 (16:38 -0400)]
Merge branch 'rename-common' into 'master'
Rename the common role to testnode
The "common" role was always specific to our testing nodes, now it's name reflects that.
Not other changes here besides the "mv roles/common roles/testnode".
Andrew Schoen [Mon, 30 Mar 2015 20:17:27 +0000 (15:17 -0500)]
Rename the common role to testnode
The common role was always wrongly named. Some of the plays in the
testnode role might very well be common with other machines not used for
testing, but we're not sure exactly what those things are just yet.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Mon, 30 Mar 2015 15:59:11 +0000 (11:59 -0400)]
Merge branch 'secrets-split' into 'master'
Move our hosts and secrets out of this repo
This also includes a new secrets role which provides a secrets_path var so that we can access and use secrets located elsewhere.
Andrew Schoen [Thu, 26 Mar 2015 21:22:34 +0000 (14:22 -0700)]
Remove secrets from this repo and create a secrets role
The secrets role provides a var 'secrets_path' we can use to access
secrets stored outside of this repo. We will store the inventory and
secrets in lab specific repos.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Thu, 26 Mar 2015 20:32:44 +0000 (16:32 -0400)]
Merge branch 'rhel6' into 'master'
Support for rhel 6.5 and 6.4
Andrew Schoen [Tue, 24 Mar 2015 21:26:24 +0000 (14:26 -0700)]
Add our custom sshd_config for rhel 6.4
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 24 Mar 2015 21:06:54 +0000 (14:06 -0700)]
Added a stock rhel 6.4 sshd_config
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 24 Mar 2015 16:37:20 +0000 (09:37 -0700)]
Updates to rhel 6.5 provisioning.
This is a collection of things I had to change while testing out this
playbook against a rhel 6.5 machine.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 24 Mar 2015 16:33:20 +0000 (09:33 -0700)]
Customized sshd_config for rhel 6.5
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 23 Mar 2015 22:13:31 +0000 (15:13 -0700)]
Adding a stock rhel 6.5 sshd_config
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 23 Mar 2015 20:23:01 +0000 (13:23 -0700)]
Rhel 6.x support ported from chef
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 20 Mar 2015 14:52:02 +0000 (09:52 -0500)]
Made the teuthology user a var
This will allow us to more easily change the user teuthology uses to run
tests against these nodes in the future.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Mar 2015 21:11:35 +0000 (16:11 -0500)]
Use a prefix for yum repo names to indicate how it was created.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 14:26:31 +0000 (09:26 -0500)]
Install packages for rhel 7 in the common role
This also added some tags so that we can filter the tasks
that get ran when executing the playbook.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Sun, 15 Mar 2015 22:12:30 +0000 (17:12 -0500)]
Create local repo files for rhel 7.0 and 7.1
This also introduces version specific var files for rhel
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Tue, 24 Mar 2015 16:55:52 +0000 (12:55 -0400)]
Merge branch 'rhel7' into 'master'
Support for rhel 7 provisioning for lab test nodes
I might end up tweaking this a bit more, but I didn't want to wait to any longer to create this PR.
If you've got any questions about how to run this, let me know. This is the command I've been using though.
ansible-playbook -i octo testnodes.yml -vv --limit magna085*
You can use --limit there to target any specific node or set of nodes (look at the octo file for available nodes). If you want to make sure what nodes or tasks will run for that playbook --list-tasks and --list-hosts are really helpful. I believe you can also just say -i fqdn
You'll need to get the key to unlock the subscription_manager secrets. You can find that at magna002:/etc/ansible/.vault_pass.txt. Move that file to ~/.vault_pass.txt wherever you plan to run ansible from.
Note: I'm unsure how well rhel 7.1 will actually work, so I changed the title.
Andrew Schoen [Sat, 21 Mar 2015 21:17:08 +0000 (16:17 -0500)]
Move install of python-pip to pip.yml
This makes the pip.conf and .pip directory tasks idempotent.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 20 Mar 2015 17:37:02 +0000 (12:37 -0500)]
Add no_log to all entitlement tasks
When registering for the first time the log will include secrets if
these are not included.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 20 Mar 2015 14:52:02 +0000 (09:52 -0500)]
Made the teuthology user a var
This will allow us to more easily change the user teuthology uses to run
tests against these nodes in the future.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 20 Mar 2015 14:36:50 +0000 (09:36 -0500)]
Normalizing the use of booleans to lowercase.
Uppercase and lowercase True or true work with ansible. Let's
standardize to lowercase for now to reduce confusion.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Mar 2015 21:33:13 +0000 (16:33 -0500)]
Move tasks related to disk monitoring scipts to main.yml
Looks like we upload these for all distros, so moving them out of the
redhat specific setup tasks. I've also put them into their own yaml
file.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Mar 2015 21:22:22 +0000 (16:22 -0500)]
Remove duplicate limits.conf task
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Mar 2015 20:31:42 +0000 (15:31 -0500)]
Made the include name for redhat/packages.yml not a lie
I thought about being more descriptive, but as the contents of the
included file might change I wanted this name to be a bit generic.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Mar 2015 20:20:12 +0000 (15:20 -0500)]
Change copy to template when creating limits.d/ubuntu.conf
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Mar 2015 20:10:49 +0000 (15:10 -0500)]
Adds {{ ansible_managed }} to perl scripts in files/libexec
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Mar 2015 20:02:46 +0000 (15:02 -0500)]
Move packages list into pkg manager specific var file.
We'll need to at least have lists of packages to install for yum vs apt
systems. Maybe even eventually distro / version specific lists.
I also added in a check to make sure the packages list is defined
because it defaults to [] in defaults/main.yml and the template module
that uses this list will just silently be skipped if packages isn't
defined.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Mar 2015 19:28:32 +0000 (14:28 -0500)]
Remove the rpm_packages fact, it was unneeded.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Mar 2015 19:27:31 +0000 (14:27 -0500)]
Add packges tag to ntp install
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 18 Mar 2015 21:12:30 +0000 (16:12 -0500)]
Ensure ceph packages are not present on rhel
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 18 Mar 2015 19:13:30 +0000 (14:13 -0500)]
Configure CPAN and install Amazon::S3 on rhel 7
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 18 Mar 2015 15:19:03 +0000 (10:19 -0500)]
Added an ansible config file
I did this so that we can always change the value of ansible_managed.
When it included a timestamp templates were reporting changed when they
were not actually changed.
This also stores the vault_password_file setting which will need to be
modified most likely when not running ansible from you own machine.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 21:25:56 +0000 (16:25 -0500)]
Configure /etc/security/limits.conf on rhel
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 21:12:55 +0000 (16:12 -0500)]
Removing comments we don't need from our limits.conf template
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 21:10:40 +0000 (16:10 -0500)]
Adding a stock rhel7 /etc/security/limits.conf file
This was taken from magna085
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 21:00:31 +0000 (16:00 -0500)]
Configure /etc/sudoers on rhel
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 20:47:18 +0000 (15:47 -0500)]
Remove things we don't need from our sudoers template for rhel
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 20:42:40 +0000 (15:42 -0500)]
Adding a stock /etc/sudoers file from rhel7
This was pulled from magna085
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 20:42:09 +0000 (15:42 -0500)]
Configure nfs with a dummy export so it starts up on rhel
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 20:12:41 +0000 (15:12 -0500)]
Configure ssh on rhel in the common role
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 16:44:44 +0000 (11:44 -0500)]
Removing config options we're not using for ssh configuration.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 16:42:28 +0000 (11:42 -0500)]
Added a stock ssh_config for rhel7; moved ssh stuff into templates/ssh
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 16:33:36 +0000 (11:33 -0500)]
Removed unneeeded config options from the stock sshd_config_redhat_7.0
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 16:06:14 +0000 (11:06 -0500)]
Including a stock sshd_config for a rhel 7.0 node.
This was pulled from magna085.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 17 Mar 2015 16:04:02 +0000 (11:04 -0500)]
Upload various files needed for disk and raid monitoring on rhel
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 21:29:24 +0000 (16:29 -0500)]
Add user ubuntu to group kvm during rhel setup
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 21:24:45 +0000 (16:24 -0500)]
Set mode on /etc/fuse.conf during rhel setup
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 21:18:42 +0000 (16:18 -0500)]
Remove localdomain from rhel7 hostnames on setup
This is a rhel7.0 specific thing so I moved it to it's own file as well
as stopping firewalld which is also rhel7 specific.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 20:42:15 +0000 (15:42 -0500)]
Create /etc/security/limits.d/remote.conf during rhel setup
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 20:33:36 +0000 (15:33 -0500)]
Stop firewalld during rhel setup
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 20:21:34 +0000 (15:21 -0500)]
Moved the subscription-manager vars to entitlements.yml
Also tags the include_vars task with the var tag
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 19:58:02 +0000 (14:58 -0500)]
Configure ntp in the common role
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 15:31:06 +0000 (10:31 -0500)]
Added a simple README, mostly used for notes currently
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 16 Mar 2015 14:26:31 +0000 (09:26 -0500)]
Install packages for rhel 7 in the common role
This also added some tags so that we can filter the tasks
that get ran when executing the playbook.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Sun, 15 Mar 2015 22:12:30 +0000 (17:12 -0500)]
Create local repo files for rhel 7.0 and 7.1
This also introduces version specific var files for rhel
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Sun, 15 Mar 2015 19:19:02 +0000 (14:19 -0500)]
Move entitlement setup to it's own file
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Sun, 15 Mar 2015 19:01:44 +0000 (14:01 -0500)]
Set a high max open files limit
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Sun, 15 Mar 2015 18:20:30 +0000 (13:20 -0500)]
Configure pip to use our mirror in the common role
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Sun, 15 Mar 2015 18:00:06 +0000 (13:00 -0500)]
subscription-manager vars will always be defined, don't check for them
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 13 Mar 2015 20:51:33 +0000 (15:51 -0500)]
Use ansible-vault to encrypt secret vars for redhat setup
We'll do this instead of prompting for these values
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 13 Mar 2015 20:50:31 +0000 (15:50 -0500)]
Add the rest of the magna nodes to the octo inventory
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 13 Mar 2015 15:37:51 +0000 (10:37 -0500)]
Initial setup and the start of a common role
Currently all this does is subscribe our rhel nodes with
subscription-manager
Signed-off-by: Andrew Schoen <aschoen@redhat.com>