Skip to content

Commit

Permalink
Merge pull request #649 from ministryofjustice/onr/DSOS-2682/onr-serv…
Browse files Browse the repository at this point in the history
…er-types

add onr files in group_vars
  • Loading branch information
robertsweetman authored Mar 27, 2024
2 parents 8a44ddf + 4783eb6 commit cc577c9
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
3 changes: 3 additions & 0 deletions ansible/group_vars/server_type_onr_boe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
ansible_python_interpreter: /usr/local/bin/python3.6
# FIXME: this is a rhel 6.9 instance so 'packages' role may not work the same way
81 changes: 81 additions & 0 deletions ansible/group_vars/server_type_onr_web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
ansible_python_interpreter: /usr/bin/python3.9

# TODO: Users and Disks roles need checking versus what we're actually deploying
# FIXME: ncr-tomcat role probably needs to be either made 'generic' or we need an onr-tomcat role

# users_and_groups_system:
# - name: oracle
# group: oinstall
# groups:
# - dba
# - wheel
# - name: bobj
# group: binstall
# groups:
# - dba
# - sapsys

server_type_roles_list:
# - users-and-groups
- sudoers
- get-ec2-facts
- set-ec2-hostname
- domain-search
- disable-ipv6
- disable-firewall
- time
- packages
- message-of-the-day
- amazon-ssm-agent
- amazon-cli
- ansible-script
- epel
# - disks
# - ncr-tomcat >> change to onr-tomcat, can't entirely re-use this
- collectd
- amazon-cloudwatch-agent
- amazon-cloudwatch-agent-collectd
- collectd-service-metrics

roles_list: "{{ (ami_roles_list | default([]) | difference(server_type_roles_list | default([]))) + (server_type_roles_list | default([])) }}"

packages_yum_install:
- nano
- vim
- make
- libstdc++.i686
- libstdc++.x86_64
- glibc.i686
- glibc.x86_64
- libX11.i686
- libX11.x86_64
- libXext.i686
- libXext.x86_64
- expat.i686
- expat.x86_64
- libxcrypt.i686
- libgcc.i686
- libgcc.x86_64
- libnsl.i686
- libXcursor.i686
- libXcursor.x86_64
- libXrender.i686
- libXrender.x86_64
- libXfixes.i686
- libXfixes.x86_64
- libxcb.i686
- libxcb.x86_64
- libXau.i686
- libXau.x86_64
- xz-libs.i686
# disks_mount:
# - ebs_device_name: /dev/sdb
# dir: /u01
# fstype: xfs
# - ebs_device_name: /dev/sdc
# dir: /u02
# fstype: xfs
# - ebs_device_name: /dev/sds
# dir: swap
# fstype: swap

0 comments on commit cc577c9

Please sign in to comment.