Skip to content
Snippets Groups Projects
Commit cb4cad29 authored by Radim Peša's avatar Radim Peša
Browse files

Minor changes

parent 47a4f961
No related branches found
No related tags found
No related merge requests found
# Scipion on OpenStack
Ansible deployment of Scipion Web Tools (https://github.com/I2PC/scipion-web) cluster on OpenStack.
Default number of worker nodes is 5, but it can be changed by setting variable "count" in ostack.yml
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
- name: Create dir ScipionUserData - name: Create dir ScipionUserData
file: file:
path: /home/centos/ScipionUserData path: "{{ home_dir }}/ScipionUserData"
state: directory state: directory
owner: centos owner: "{{ user_name }}"
group: centos group: "{{ user_name }}"
- name: Create dir .config - name: Create dir .config
file: file:
path: /home/centos/.config path: "{{ home_dir }}/.config"
state: directory state: directory
owner: centos owner: "{{ user_name }}"
group: centos group: "{{ user_name }}"
- name: Create filesystem - name: Create filesystem
filesystem: filesystem:
......
---
user_name: "centos"
home_dir: "/home/centos"
...@@ -3,21 +3,21 @@ ...@@ -3,21 +3,21 @@
- name: Copy ssh files - name: Copy ssh files
copy: copy:
src: id_rsa src: id_rsa
dest: /home/centos/.ssh/id_rsa dest: "{{ home_dir }}/.ssh/id_rsa"
owner: centos owner: "{{ user_name }}"
group: centos group: "{{ user_name }}"
mode: 0600 mode: 0600
- name: Copy ssh config - name: Copy ssh config
copy: copy:
src: config src: config
dest: /home/centos/.ssh/config dest: "{{ home_dir }}/.ssh/config"
owner: centos owner: "{{ user_name }}"
group: centos group: "{{ user_name }}"
mode: 0600 mode: 0600
- name: Add authorized key - name: Add authorized key
authorized_key: authorized_key:
user: centos user: "{{ user_name }}"
state: present state: present
key: "{{ lookup('file','authorized_keys') }}" key: "{{ lookup('file','authorized_keys') }}"
---
user_name: "centos"
home_dir: "/home/centos"
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
- name: Mount .config - name: Mount .config
mount: mount:
name: /home/centos/.config name: "{{ home_dir }}/.config"
src: "{{ master_ip }}:/home/centos/.config" src: "{{ master_ip }}:{{ home_dir }}/.config"
fstype: nfs fstype: nfs
state: mounted state: mounted
- name: Mount ScipionUserData - name: Mount ScipionUserData
mount: mount:
name: /home/centos/ScipionUserData name: "{{ home_dir }}/ScipionUserData"
src: "{{ master_ip }}:/home/centos/ScipionUserData" src: "{{ master_ip }}:{{ home_dir }}/ScipionUserData"
fstype: nfs fstype: nfs
state: mounted state: mounted
---
home_dir: "/home/centos"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment