Skip to content

Commit 90b7107

Browse files
committed
Make changes so runner deploys
1 parent a2e23f8 commit 90b7107

File tree

4 files changed

+17
-38
lines changed

4 files changed

+17
-38
lines changed

deploy/deploy-runner.yml

-30
Original file line numberDiff line numberDiff line change
@@ -107,36 +107,6 @@
107107
ansible.builtin.service:
108108
name: docker
109109
state: restarted
110-
# Poetry
111-
- name: Install Poetry dependencies
112-
ansible.builtin.package:
113-
name:
114-
- acl
115-
- python3-pip
116-
- python3-venv
117-
- name: Install pipx Python package
118-
ansible.builtin.pip:
119-
name: pipx
120-
- name: Install poetry
121-
community.general.pipx:
122-
name: poetry
123-
state: present
124-
environment:
125-
PIPX_HOME: /opt/pipx
126-
PIPX_BIN_DIR: /usr/local/bin
127-
- name: Install pipx
128-
ansible.builtin.shell:
129-
cmd: |
130-
python3 -m pip install --user pipx
131-
python3 -m pipx ensurepath
132-
chdir: /home/{{ github_runner_user }}
133-
become_user: "{{ github_runner_user }}"
134-
- name: Install Poetry
135-
ansible.builtin.shell:
136-
cmd: |
137-
pipx install poetry
138-
chdir: /home/{{ github_runner_user }}
139-
become_user: "{{ github_runner_user }}"
140110
- name: Install the runner [If error, RUNNER_CFG_PAT might be missing or expired! See README.md]
141111
ansible.builtin.shell:
142112
cmd: >

deploy/group_vars/all.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@ stack_name: "{{ long_app_name }}-stack"
1111
aws_profile: "{{ long_app_name }}"
1212
cluster_name: "{{ stack_name }}-cluster"
1313

14-
ansible_connection: local
15-
ansible_python_interpreter: "{{ ansible_playbook_python }}"
14+
# ansible_connection: local
15+
# ansible_python_interpreter: "{{ ansible_playbook_python }}"
1616

1717
k8s_cluster_name: "{{ cluster_name }}"
1818
k8s_namespace: "{{ app_name }}-{{ env_name }}"
1919

20-
# Caktus office IP address
21-
administrator_ip_cidr: "70.62.97.170/32"
20+
# IP addresses
21+
administrator_ip_cidrs:
22+
- 70.62.97.170/32 # Caktus office
23+
- 107.15.45.253/32 # Tobias
24+
- 47.230.11.28/32 # Ronard
25+
- 107.223.185.195/32 # Colin
2226

2327
# CloudFormation Outputs
2428
# These values are taken from the CF 'Output' tab
@@ -54,9 +58,9 @@ cloudformation_stack:
5458

5559
template_parameters:
5660
UseAES256Encryption: "true"
57-
AdministratorIPAddress: "{{ administrator_ip_cidr }}"
58-
BastionAMI: "" # Needed - don't know how to get it.
59-
BastionKeyName: ron_hip
61+
AdministratorIPAddress: "{{ administrator_ip_cidrs[0] }}" # Stack allows only single IP here to SSH to bastion
62+
BastionAMI: "ami-0ad554caf874569d2" # https://cloud-images.ubuntu.com/locator/ec2/ [us-east-1 amd64]
63+
BastionKeyName: rluna_hip
6064
BastionInstanceType: t3.small # Is this a proper size?
6165
BastionType: SSH
6266
CustomerManagedCmkArn: ""
@@ -77,7 +81,7 @@ cloudformation_stack:
7781
DatabasePassword: "{{ admin_database_password }}"
7882
DatabaseMultiAZ: "true"
7983
EksClusterName: "philly-hip-stack-cluster"
80-
EksPublicAccessCidrs: " {{ administrator_ip_cidr }}"
84+
EksPublicAccessCidrs: " {{ administrator_ip_cidrs | join(',') }}"
8185
tags:
8286
Environment: "{{ app_name }}"
8387

deploy/inventory

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
runner ansible_host=100.29.176.240
2+
13
[k8s]
24
dr
35
staging

deploy/requirements.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212
- src: https://github.com/caktus/ansible-role-k8s-hosting-services
1313
name: caktus.k8s-hosting-services
1414
version: v0.12.0
15+
16+
- src: weareinteractive.users
17+
version: 1.17.0

0 commit comments

Comments
 (0)