summaryrefslogtreecommitdiffstats
path: root/docs/submodules/vswitchperf
AgeCommit message (Expand)AuthorFilesLines
2017-03-29Update git submodulesTrevor Cooper1-0/+0
2017-03-29Update git submodulesTrevor Cooper1-0/+0
2017-03-27Update git submodulesMartin Klozik1-0/+0
2017-03-27Update git submodulesMartin Klozik1-0/+0
2017-03-27Update git submodulesMartin Klozik1-0/+0
2017-03-24Update git submodulesMartin Klozik1-0/+0
2017-03-24Update git submodulesTrevor Cooper1-0/+0
2017-03-23Update git submodulesTrevor Cooper1-0/+0
2017-03-23Update git submodulesTrevor Cooper1-0/+0
2017-03-23Updating HEAD's of submodulesShubhamRathi1-0/+0
2017-03-15Updating submodules & add openretrieverShubhamRathi1-0/+0
2017-01-11Add submodules and .gitmoduleShubhamRathi1-0/+0
ighlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
- name: gen ceph fsid
  shell: uuidgen
  register: ceph_fsid
  when: inventory_hostname in groups['ceph_adm']

- name: gen ceph conf
  local_action:
    module: "template"
    src: "ceph.j2"
    dest: "/tmp/ceph.conf"
  when: inventory_hostname in groups['ceph_adm']

- name: "make directory for ceph config file"
  file: path="/etc/ceph" state="directory"

- name: copy ceph conf to dest mon node
  copy: src="/tmp/ceph.conf" dest="/etc/ceph/ceph.conf"

- name: install ceph-related packages
  action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
  with_items:
    - ceph

- name: gen create monmap script
  local_action: template src="create_monmap.j2" dest="/tmp/create_monmap.sh" mode=0755
  when: inventory_hostname in groups['ceph_adm']

- name: create monmap
  script: /tmp/create_monmap.sh
  when: inventory_hostname in groups['ceph_mon']

- name: create mon.keyring
  shell: "ceph-authtool --create-keyring /tmp/ceph.mon.keyring --gen-key -n mon. --cap mon 'allow *'"
  when: inventory_hostname in groups['ceph_adm']

- name: create admin.keyring
  shell: "ceph-authtool --create-keyring /etc/ceph/ceph.client.admin.keyring --gen-key -n client.admin --set-uid=0 --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow'"
  when: inventory_hostname in groups['ceph_adm']

- name: Add the client.admin key to the ceph.mon.keyring
  shell: "ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.client.admin.keyring"
  when: inventory_hostname in groups['ceph_adm']

- name: fetch mon.keyring to local
  fetch: src="/tmp/ceph.mon.keyring" dest="/tmp/ceph.mon.keyring" flat=yes
  when: inventory_hostname in groups['ceph_adm']

- name: fetch client.admin.keyring to local
  fetch: src="/etc/ceph/ceph.client.admin.keyring" dest="/tmp/ceph.client.admin.keyring" flat=yes
  when: inventory_hostname in groups['ceph_adm']

- name: copy mon.keyring to remote nodes
  copy: src="/tmp/ceph.mon.keyring" dest="/tmp/ceph.mon.keyring"

- name: copy admin.keyring to remote nodes
  copy: src="/tmp/ceph.client.admin.keyring" dest="/etc/ceph/ceph.client.admin.keyring"


- meta: flush_handlers