From 1a08d7ab18bc5ad542368ebd6c655fc8594a0b7e Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Thu, 23 Jan 2014 14:00:31 +0100 Subject: [PATCH] switch test-kitchen provisioner to chef-zero This allows for using roles (when they're present in compiled form, i.e. JSON -- I added these). In theory it should help with all search() calls, but I haven't tested that yet. --- .kitchen.yml | 16 ++++++++-------- roles/ceph-mds.json | 8 ++++++++ roles/ceph-mon.json | 8 ++++++++ roles/ceph-osd.json | 8 ++++++++ roles/ceph-radosgw.json | 8 ++++++++ 5 files changed, 40 insertions(+), 8 deletions(-) create mode 100644 roles/ceph-mds.json create mode 100644 roles/ceph-mon.json create mode 100644 roles/ceph-osd.json create mode 100644 roles/ceph-radosgw.json diff --git a/.kitchen.yml b/.kitchen.yml index 83729aa..5963e97 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -9,9 +9,13 @@ platforms: - name: centos-6.4 - name: centos-5.9 +provisioner: + name: chef_zero + suites: - name: default run_list: + - "recipe[ceph::repo]" - "recipe[ceph]" attributes: &defaults ceph: @@ -19,23 +23,19 @@ suites: fsid: ae3f1d03-bacd-4a90-b869-1a4fabb107f2 mon_initial_members: - "127.0.0.1" -- name: repo - run_list: - - "recipe[ceph::repo]" - attributes: *defaults - name: osd run_list: - - "recipe[ceph::osd]" + - "role[ceph-osd]" attributes: *defaults - name: mon run_list: - - "recipe[ceph::mon]" + - "role[ceph-mon]" attributes: *defaults - name: mds run_list: - - "recipe[ceph::mds]" + - "role[ceph-mds]" attributes: *defaults - name: radosgw run_list: - - "recipe[ceph::radosgw]" + - "role[ceph-radosgw]" attributes: *defaults diff --git a/roles/ceph-mds.json b/roles/ceph-mds.json new file mode 100644 index 0000000..2fe9d3b --- /dev/null +++ b/roles/ceph-mds.json @@ -0,0 +1,8 @@ +{ + "name": "ceph-mds", + "description": "Ceph Metadata Server", + "run_list": [ + "recipe[ceph::repo]", + "recipe[ceph::mds]" + ] +} \ No newline at end of file diff --git a/roles/ceph-mon.json b/roles/ceph-mon.json new file mode 100644 index 0000000..f44b3aa --- /dev/null +++ b/roles/ceph-mon.json @@ -0,0 +1,8 @@ +{ + "name": "ceph-mon", + "description": "Ceph Monitor", + "run_list": [ + "recipe[ceph::repo]", + "recipe[ceph::mon]" + ] +} \ No newline at end of file diff --git a/roles/ceph-osd.json b/roles/ceph-osd.json new file mode 100644 index 0000000..c37b66c --- /dev/null +++ b/roles/ceph-osd.json @@ -0,0 +1,8 @@ +{ + "name": "ceph-osd", + "description": "Ceph Object Storage Device", + "run_list": [ + "recipe[ceph::repo]", + "recipe[ceph::osd]" + ] +} \ No newline at end of file diff --git a/roles/ceph-radosgw.json b/roles/ceph-radosgw.json new file mode 100644 index 0000000..722d26d --- /dev/null +++ b/roles/ceph-radosgw.json @@ -0,0 +1,8 @@ +{ + "name": "ceph-radosgw", + "description": "Ceph RADOS Gateway", + "run_list": [ + "recipe[ceph::repo]", + "recipe[ceph::radosgw]" + ] +} \ No newline at end of file