]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
various fixes for CentOS 432/head
authorHuamin Chen <hchen@redhat.com>
Thu, 5 Nov 2015 20:39:03 +0000 (20:39 +0000)
committerHuamin Chen <hchen@redhat.com>
Thu, 5 Nov 2015 20:39:03 +0000 (20:39 +0000)
Signed-off-by: Huamin Chen <hchen@redhat.com>
README.md
Vagrantfile
install-ansible.sh
roles/ceph-common/tasks/main.yml
roles/ceph-osd/tasks/pre_requisite.yml
vagrant_variables.yml.sample

index c08a7bc4f00f582776fd9b82d382cfbd95037f89..fc531fff1feeb55f603ca0c557c8cc071ef05436 100644 (file)
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ More details:
 Run your virtual machines:
 
 ```bash
-$ vagrant up
+$ vagrant up --provider=virtualbox
 ...
 ...
 ...
index 59539d8153fe0bedd2d6c089d9861099e3337fda..6b744c97fb697095bc4fe4e1e0fe2a2439925eb2 100644 (file)
@@ -16,6 +16,7 @@ SUBNET     = settings['subnet']
 BOX        = settings['vagrant_box']
 MEMORY     = settings['memory']
 STORAGECTL = settings['vagrant_storagectl']
+ETH        = settings['eth']
 
 ansible_provision = proc do |ansible|
   ansible.playbook = 'site.yml'
@@ -38,7 +39,7 @@ ansible_provision = proc do |ansible|
     fsid: '4a158d27-f750-41d5-9e7f-26ce4c9d2d45',
     monitor_secret: 'AQAWqilTCDh7CBAAawXt6kyTgLFCxSvJhTEmuw==',
     journal_size: 100,
-    monitor_interface: 'eth1',
+    monitor_interface: ETH,
     cluster_network: "#{SUBNET}.0/24",
     public_network: "#{SUBNET}.0/24",
     devices: "[ '/dev/sdb', '/dev/sdc' ]",
index 1b9fe3755d773dd3cb63d7ec74b7ea53f3b41b40..e9c27051555cec48fe2f399f9e77698a98b1e169 100644 (file)
@@ -26,5 +26,6 @@ if [[ -x $(which lsb_release 2>/dev/null) ]]; then
       apt-get install -y ansible
   fi
 elif [[ -r /etc/redhat-release ]]; then
+  yum install -y epel-release
   yum install -y ansible
 fi
index d91721fbb08a42cd88d507c7b7ce0fdfc4ba41d3..3eab4498aef0c347436d88cc3c66c4f25f004743 100644 (file)
   sudo: false
   when: fsid != '4a158d27-f750-41d5-9e7f-26ce4c9d2d45'
 
+- name: create ceph conf directory
+  file:
+      path: /etc/ceph
+      state: directory
+      owner: root
+      group: root
+      mode: 0644
+
 - name: generate ceph configuration file
   template:
     src: ceph.conf.j2
index 5db14a27378767e1587c45e2042fccc26e8209af..0a914b4309dba8e497d56efd1585ad72e3679ec7 100644 (file)
     state: present
   when: ansible_os_family == 'RedHat'
 
+- name: create bootstrap-osd
+  file:
+    path: /var/lib/ceph/bootstrap-osd/
+    state: directory
+    owner: root
+    group: root
+    mode: 600
+
 - name: copy osd bootstrap key
   copy:
     src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring"
index 18c6c8ab0b23f61a627ec4b8ed674204bcbd03a9..09e46791e3fc4783baad9ce64461f7e3d638073e 100644 (file)
@@ -11,15 +11,22 @@ client_vms: 0
 subnet: 192.168.42
 
 # MEMORY
+# set 1024 for CentOS
 memory: 256
 
+# Ethernet interface name
+# use eth1 for ubuntu, enp0s8 for CentOS
+eth: 'eth1'
+
 # VAGRANT BOX
 # Fedora: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box
 # Ubuntu: ubuntu/trusty64
-# CentOS: chef/centos-7.0
+# CentOS: bento/centos-7.1
 # Debian: deb/jessie-amd64 - be careful the storage controller is named 'SATA Controller'
 # For more boxes have a look at:
 #   - https://atlas.hashicorp.com/boxes/search?utf8=✓&sort=&provider=virtualbox&q=
 #   - https://download.gluster.org/pub/gluster/purpleidea/vagrant/
 vagrant_box: ubuntu/trusty64
+
+# use vagrant_storagectl: 'SATA Controller' for CentOS
 vagrant_storagectl: 'SATAController'