mirror of https://github.com/ceph/ceph-ansible.git
commit
61551fa37d
|
@ -10,23 +10,10 @@ group_vars/mdss
|
|||
group_vars/rgws
|
||||
group_vars/restapis
|
||||
group_vars/agent
|
||||
group_vars/*.yml
|
||||
*.DS_Store
|
||||
site.yml
|
||||
site-docker.yml
|
||||
*.yml
|
||||
*.pyc
|
||||
*.sw?
|
||||
purge-cluster.yml
|
||||
shrink-mon.yml
|
||||
cluster-maintenance.yml
|
||||
purge-docker-cluster.yml
|
||||
shrink-osd.yml
|
||||
cluster-os-migration.yml
|
||||
purge-multisite.yml
|
||||
switch-from-non-containerized-to-containerized-ceph-daemons.yml
|
||||
localrepo-site.yml.sample
|
||||
rgw-standalone.yml
|
||||
take-over-existing-cluster.yml
|
||||
osd-configure.yml
|
||||
rolling_update.yml
|
||||
.tox
|
||||
ceph-ansible.spec
|
||||
|
|
35
.travis.yml
35
.travis.yml
|
@ -1,35 +0,0 @@
|
|||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
env:
|
||||
- SITE=test.yml
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -y curl
|
||||
|
||||
install:
|
||||
# Install Ansible.
|
||||
- pip install ansible
|
||||
|
||||
# Add ansible.cfg to pick up roles path.
|
||||
- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
|
||||
|
||||
script:
|
||||
# Check the role/playbook's syntax.
|
||||
- "ansible-playbook -i dummy-ansible-hosts $SITE --syntax-check"
|
||||
|
||||
# Run the role/playbook with ansible-playbook.
|
||||
#- "ansible-playbook -i dummy-ansible-hosts $SITE --connection=local --sudo"
|
||||
|
||||
# Run the role/playbook again, checking to make sure it's idempotent.
|
||||
#- >
|
||||
# ansible-playbook -i dummy-ansible-hosts $SITE --connection=local --sudo
|
||||
# | grep -q 'changed=0.*failed=0'
|
||||
# && (echo 'Idempotence test: pass' && exit 0)
|
||||
# || (echo 'Idempotence test: fail' && exit 1)
|
||||
|
||||
# Make sure Ansible is installed (yes, this is contrived, since Ansible was
|
||||
# already installed via pip earlier...).
|
||||
- "which ansible"
|
|
@ -1,56 +0,0 @@
|
|||
---
|
||||
# Sample Playbook for local mirrors.
|
||||
# Additional/optional step to generate repos.d file for local mirrors.
|
||||
# Defines deployment design and assigns role to server groups
|
||||
|
||||
- hosts: all
|
||||
max_fail_percentage: 0
|
||||
become: True
|
||||
vars:
|
||||
repolist:
|
||||
- { src: "/<path to repo file>/localmirror_ceph.repo", dest: "/etc/yum.repos.d/ceph.repo" }
|
||||
tasks:
|
||||
- name: Copy User provided repo files to /etc/yum.repos.d/
|
||||
copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: root
|
||||
with_items:
|
||||
- "{{ repolist }}"
|
||||
|
||||
- hosts: mons
|
||||
become: True
|
||||
roles:
|
||||
- ceph-mon
|
||||
|
||||
- hosts: agents
|
||||
become: True
|
||||
roles:
|
||||
- ceph-agent
|
||||
|
||||
- hosts: osds
|
||||
become: True
|
||||
roles:
|
||||
- ceph-osd
|
||||
|
||||
- hosts: mdss
|
||||
become: True
|
||||
roles:
|
||||
- ceph-mds
|
||||
|
||||
- hosts: rgws
|
||||
become: True
|
||||
roles:
|
||||
- ceph-rgw
|
||||
|
||||
- hosts: nfss
|
||||
become: True
|
||||
roles:
|
||||
- ceph-nfs
|
||||
|
||||
- hosts: restapis
|
||||
become: True
|
||||
roles:
|
||||
- ceph-restapi
|
||||
|
Loading…
Reference in New Issue