Skip to content

Commit

Permalink
Update ansible to support smartos21/23
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanaslett committed May 23, 2024
1 parent 102f630 commit 8c0d5eb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 23 deletions.
5 changes: 5 additions & 0 deletions ansible/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ hosts:
PATH: /rsusr/rocket/python-2017-04-12-py27/python27/bin:/bin:/rsusr/rocket/bin
SSL_CERT_FILE: "{{ home }}/{{ server_user }}/ca-bundle.crt"
server_jobs: 4
- mnx:
smartos21-x64-1: {ip: 8.225.232.135}
smartos21-x64-2: {ip: 8.225.232.137}
smartos23-x64-1: {ip: 8.225.232.134}
smartos23-x64-2: {ip: 8.225.232.141}

- osuosl:
# secret for -1 was compromised, do not use -1 name
Expand Down
2 changes: 1 addition & 1 deletion ansible/plugins/inventory/nodejs_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

# providers - validated for consistency
'provider': ('azure', 'digitalocean', 'equinix', 'ibm', 'iinthecloud', 'joyent',
'linuxonecc', 'hetzner', 'macstadium', 'marist', 'mininodes', 'msft',
'linuxonecc', 'hetzner', 'macstadium', 'marist', 'mininodes', 'mnx', 'msft',
'orka', 'osuosl', 'rackspace',
'rzkh', 'scaleway', 'softlayer', 'voxer')
}
Expand Down
18 changes: 9 additions & 9 deletions ansible/roles/baselayout/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ git_version: 2.10.2
ssh_config: /etc/ssh/sshd_config

sshd_service_map: {
'smartos18': 'ssh',
'smartos21': 'ssh',
'smartos23': 'ssh',
}

sshd_service_name: "{{ sshd_service_map[os]|default(sshd_service_map[os|stripversion])|default('sshd') }}"
Expand Down Expand Up @@ -119,18 +120,17 @@ packages: {
'sudo',
],

smartos18: [
'gcc7',
smartos21: [
'gcc10',
'ccache',
'python37',
'py37-pip'
'py310-pip'
],

smartos20: [
'gcc10',
smartos23: [
'gcc13',
'ccache',
'python38',
'py38-pip'
'python310',
'py310-pip'
],

ubuntu: [
Expand Down
11 changes: 0 additions & 11 deletions ansible/roles/jenkins-worker/tasks/partials/tap2junit/smartos.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
---

#
# smartos
#

- name: smartos | update pip3 symlink
when: os == "smartos18"
file:
dest: "/opt/local/bin/pip3"
state: link
src: "/opt/local/bin/pip3.7"

- name: install tap2junit
pip:
executable: /opt/local/bin/pip3
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/jenkins-worker/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ java_path: {
'macos10.15': 'java',
'macos11': 'java',
'macos11.0': 'java',
'smartos18': '/opt/local/java/openjdk11/bin/java',
'smartos20': '/opt/local/java/openjdk11/bin/java',
'smartos21': '/opt/local/java/openjdk11/bin/java',
'smartos23': '/opt/local/java/openjdk11/bin/java',
'zos24': '/usr/lpp/java/J8.0_64/bin/java'
}

Expand Down

0 comments on commit 8c0d5eb

Please sign in to comment.