Skip to content
Snippets Groups Projects
Commit cd21cfc8 authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'reposrv' into 'master'

Reposrv

See merge request hpc-team/ansible_cluster_in_a_box!287

Former-commit-id: a64ba979
parents 1ea564f6 2cc3cf25
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ parameters: ...@@ -13,7 +13,7 @@ parameters:
type: string type: string
label: Image ID label: Image ID
description: Centos Image description: Centos Image
default: 12da1997-5122-4be3-a2a9-2f44961c1b16 default: c47c3acb-9657-4243-9e14-e6c676157e3b #with NetworkManager
ssh_key: ssh_key:
type: string type: string
default: gc_key default: gc_key
...@@ -104,7 +104,7 @@ resources: ...@@ -104,7 +104,7 @@ resources:
name: name:
list_join: [ '-', [ { get_param: "OS::stack_name" }, 'sql0' ]] list_join: [ '-', [ { get_param: "OS::stack_name" }, 'sql0' ]]
availability_zone: { get_param: avz } availability_zone: { get_param: avz }
flavor: t3.small flavor: m3.small
image: { get_param: centos_7_image_id } image: { get_param: centos_7_image_id }
key_name: { get_param: ssh_key } key_name: { get_param: ssh_key }
security_groups: [ { get_resource: SSHMonashSecGroup }, { get_resource: SlurmSecGroup }, { get_resource: MySQLSecGroup }, { get_resource: NFSSecGroup } ] security_groups: [ { get_resource: SSHMonashSecGroup }, { get_resource: SlurmSecGroup }, { get_resource: MySQLSecGroup }, { get_resource: NFSSecGroup } ]
...@@ -175,7 +175,7 @@ resources: ...@@ -175,7 +175,7 @@ resources:
type: "OS::Nova::Server" type: "OS::Nova::Server"
properties: properties:
#availability_zone: { get_param: avz } #availability_zone: { get_param: avz }
flavor: t3.small flavor: m3.xsmall
image: { get_param: centos_7_image_id } image: { get_param: centos_7_image_id }
key_name: { get_param: ssh_key } key_name: { get_param: ssh_key }
name: name:
...@@ -196,7 +196,7 @@ resources: ...@@ -196,7 +196,7 @@ resources:
type: "OS::Nova::Server" type: "OS::Nova::Server"
properties: properties:
#availability_zone: { get_param: avz } #availability_zone: { get_param: avz }
flavor: t3.small flavor: m3.xsmall
image: { get_param: centos_7_image_id } image: { get_param: centos_7_image_id }
key_name: { get_param: ssh_key } key_name: { get_param: ssh_key }
name: name:
...@@ -217,7 +217,7 @@ resources: ...@@ -217,7 +217,7 @@ resources:
type: "OS::Nova::Server" type: "OS::Nova::Server"
properties: properties:
#availability_zone: { get_param: avz } #availability_zone: { get_param: avz }
flavor: t3.small flavor: m3.xsmall
image: { get_param: centos_7_image_id } image: { get_param: centos_7_image_id }
key_name: { get_param: ssh_key } key_name: { get_param: ssh_key }
name: name:
...@@ -238,7 +238,7 @@ resources: ...@@ -238,7 +238,7 @@ resources:
type: "OS::Nova::Server" type: "OS::Nova::Server"
properties: properties:
#availability_zone: { get_param: avz } #availability_zone: { get_param: avz }
flavor: t3.small flavor: m3.xsmall
image: { get_param: ubuntu_1804_image_id } image: { get_param: ubuntu_1804_image_id }
key_name: { get_param: ssh_key } key_name: { get_param: ssh_key }
name: name:
......
...@@ -25,7 +25,7 @@ resources: ...@@ -25,7 +25,7 @@ resources:
type: OS::Nova::Server type: OS::Nova::Server
properties: properties:
#availability_zone: { get_param: avz } #availability_zone: { get_param: avz }
flavor: t3.xsmall flavor: m3.xsmall
image: { get_param: image } image: { get_param: image }
key_name: { get_param: ssh_key } key_name: { get_param: ssh_key }
security_groups: { get_param: security_groups } security_groups: { get_param: security_groups }
......
...@@ -3,6 +3,17 @@ sudo_group: systems ...@@ -3,6 +3,17 @@ sudo_group: systems
nagios_home: "/var/lib/nagios" nagios_home: "/var/lib/nagios"
nvidia_version: "390.46" nvidia_version: "390.46"
yumdisablerepo:
- 'base'
- 'extras'
- 'updates'
yumenablerepo:
- 'monashhpc_base'
- 'monashhpc_updates'
- 'monashhpc_extras'
- 'monashhpc_centosplus'
- 'monashhpc_otherstuff'
gpumap: gpumap:
'K1': 'K1' 'K1': 'K1'
'K80': 'K80' 'K80': 'K80'
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
- name: make hosts data - name: make hosts data
command: /tmp/makehosts.py /tmp/groups {{ domain }} command: /tmp/makehosts.py /tmp/groups {{ domain }}
register: hosts_data register: hosts_data
- name: write hosts file - name: write hosts file
template: dest=/tmp/etcHosts src=etcHosts.j2 template: dest=/tmp/etcHosts src=etcHosts.j2
......
...@@ -4,8 +4,6 @@ fe00::0 ip6-localnet ...@@ -4,8 +4,6 @@ fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes ff02::1 ip6-allnodes
ff02::2 ip6-allrouters ff02::2 ip6-allrouters
118.138.241.196 hpcldap0.erc.monash.edu.au
118.138.244.7 consistency0
{% for item in hosts_data.stdout_lines %} {% for item in hosts_data.stdout_lines %}
{{ item }} {{ item }}
......
---
# default variables for config_repos
reposervername: consistency0
reposerverip: 118.138.244.7
--- ---
- name: make sure out repo server is resolvable - name: make sure out repo server is resolvable
lineinfile: lineinfile:
dest: /etc/hosts dest: /etc/hosts
line: "118.138.244.7 consistency0" line: "{{ reposerverip }} {{ reposervername }}" #this is duplicated in the role calculateEtcHosts
owner: root owner: root
group: root group: root
become: true
#- name: remove default repos #- name: remove default repos
...@@ -32,7 +33,7 @@ ...@@ -32,7 +33,7 @@
# when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == "7" # when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == "7"
- name: add our repos - name: add our repos
copy: src={{ item }} dest=/etc/yum.repos.d/{{ item }} template: src={{ item }}.j2 dest=/etc/yum.repos.d/{{ item }}
become: true become: true
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == "7" when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == "7"
with_items: with_items:
...@@ -51,10 +52,10 @@ ...@@ -51,10 +52,10 @@
- name: disable unwanted repos - name: disable unwanted repos
shell: yum-config-manager --disable "{{ item }}" shell: yum-config-manager --disable "{{ item }}"
with_items: "{{repolist.stdout_lines|difference(yumenablerepo)}}" with_items: "{{ repolist.stdout_lines|difference(yumenablerepo) }}"
become: true become: true
become_user: root become_user: root
ignore_errors: true ignore_errors: false
#- name: Enable epel #- name: Enable epel
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[epel] [epel]
name=Extra Packages for Enterprise Linux 7 - $basearch name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://consistency0/epel/$releasever/$basearch/ baseurl=https://{{ reposervername }}/epel/$releasever/$basearch/
enabled=0 enabled=0
gpgcheck=0 gpgcheck=0
sslverify=false sslverify=false
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
[monashhpc_base] [monashhpc_base]
name=MonashHPC base repository mirrored to control the update process name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/$releasever/os/$basearch/ baseurl=https://{{ reposervername }}/centos/$releasever/os/$basearch/
enabled=1 enabled=1
sslverify=false sslverify=false
[monashhpc_updates] [monashhpc_updates]
name=MonashHPC base repository mirrored to control the update process name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/$releasever/updates/$basearch/ baseurl=https://{{ reposervername }}/centos/$releasever/updates/$basearch/
enabled=1 enabled=1
sslverify=false sslverify=false
[monashhpc_extras] [monashhpc_extras]
name=MonashHPC base repository mirrored to control the update process name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/$releasever/extras/$basearch/ baseurl=https://{{ reposervername }}/centos/$releasever/extras/$basearch/
enabled=1 enabled=1
sslverify=false sslverify=false
[monashhpc_centosplus] [monashhpc_centosplus]
name=MonashHPC base repository mirrored to control the update process name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/$releasever/centosplus/$basearch/ baseurl=https://{{ reposervername }}/centos/$releasever/centosplus/$basearch/
enabled=1 enabled=1
sslverify=false sslverify=false
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[monashhpc_otherstuff] [monashhpc_otherstuff]
name=MonashHPC base repository mirrored to control the update process name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/hpcsystems/$releasever/$basearch/ baseurl=https://{{ reposervername }}/centos/hpcsystems/$releasever/$basearch/
enabled=1 enabled=1
sslverify=false sslverify=false
gpgcheck=0 gpgcheck=0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment