-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from luthersystems/bastion-venv
Bastion python virtualenv
- Loading branch information
Showing
12 changed files
with
251 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
boto3 | ||
botocore | ||
kubernetes | ||
packaging |
70 changes: 70 additions & 0 deletions
70
ansible-roles/bastion_init/files/requirements.python3.12.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile --output-file=requirements.3.12.txt requirements.in | ||
# | ||
boto3==1.34.129 | ||
# via -r requirements.in | ||
botocore==1.34.129 | ||
# via | ||
# -r requirements.in | ||
# boto3 | ||
# s3transfer | ||
cachetools==5.3.3 | ||
# via google-auth | ||
certifi==2024.6.2 | ||
# via | ||
# kubernetes | ||
# requests | ||
charset-normalizer==3.3.2 | ||
# via requests | ||
google-auth==2.30.0 | ||
# via kubernetes | ||
idna==3.7 | ||
# via requests | ||
jmespath==1.0.1 | ||
# via | ||
# boto3 | ||
# botocore | ||
kubernetes==30.1.0 | ||
# via -r requirements.in | ||
oauthlib==3.2.2 | ||
# via | ||
# kubernetes | ||
# requests-oauthlib | ||
packaging==24.1 | ||
# via -r requirements.in | ||
pyasn1==0.6.0 | ||
# via | ||
# pyasn1-modules | ||
# rsa | ||
pyasn1-modules==0.4.0 | ||
# via google-auth | ||
python-dateutil==2.9.0.post0 | ||
# via | ||
# botocore | ||
# kubernetes | ||
pyyaml==6.0.1 | ||
# via kubernetes | ||
requests==2.32.3 | ||
# via | ||
# kubernetes | ||
# requests-oauthlib | ||
requests-oauthlib==2.0.0 | ||
# via kubernetes | ||
rsa==4.9 | ||
# via google-auth | ||
s3transfer==0.10.1 | ||
# via boto3 | ||
six==1.16.0 | ||
# via | ||
# kubernetes | ||
# python-dateutil | ||
urllib3==2.2.2 | ||
# via | ||
# botocore | ||
# kubernetes | ||
# requests | ||
websocket-client==1.8.0 | ||
# via kubernetes |
74 changes: 74 additions & 0 deletions
74
ansible-roles/bastion_init/files/requirements.python3.6.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.6 | ||
# To update, run: | ||
# | ||
# pip-compile --output-file=requirements.3.6.txt requirements.in | ||
# | ||
boto3==1.23.10 | ||
# via -r requirements.in | ||
botocore==1.26.10 | ||
# via | ||
# -r requirements.in | ||
# boto3 | ||
# s3transfer | ||
cachetools==4.2.4 | ||
# via google-auth | ||
certifi==2024.6.2 | ||
# via | ||
# kubernetes | ||
# requests | ||
charset-normalizer==2.0.12 | ||
# via requests | ||
google-auth==2.22.0 | ||
# via kubernetes | ||
idna==3.7 | ||
# via requests | ||
jmespath==0.10.0 | ||
# via | ||
# boto3 | ||
# botocore | ||
kubernetes==30.1.0 | ||
# via -r requirements.in | ||
oauthlib==3.2.2 | ||
# via | ||
# kubernetes | ||
# requests-oauthlib | ||
packaging==21.3 | ||
# via -r requirements.in | ||
pyasn1==0.5.1 | ||
# via | ||
# pyasn1-modules | ||
# rsa | ||
pyasn1-modules==0.3.0 | ||
# via google-auth | ||
pyparsing==3.1.2 | ||
# via packaging | ||
python-dateutil==2.9.0.post0 | ||
# via | ||
# botocore | ||
# kubernetes | ||
pyyaml==6.0.1 | ||
# via kubernetes | ||
requests==2.27.1 | ||
# via | ||
# kubernetes | ||
# requests-oauthlib | ||
requests-oauthlib==2.0.0 | ||
# via kubernetes | ||
rsa==4.9 | ||
# via google-auth | ||
s3transfer==0.5.2 | ||
# via boto3 | ||
six==1.16.0 | ||
# via | ||
# google-auth | ||
# kubernetes | ||
# python-dateutil | ||
urllib3==1.26.18 | ||
# via | ||
# botocore | ||
# google-auth | ||
# kubernetes | ||
# requests | ||
websocket-client==1.3.1 | ||
# via kubernetes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Use colon separators. | ||
xterm-24bit|xterm with 24-bit direct color mode, | ||
use=xterm-256color, | ||
setb24=\E[48:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%dm, | ||
setf24=\E[38:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%dm, | ||
# Use semicolon separators. | ||
xterm-24bits|xterm with 24-bit direct color mode, | ||
use=xterm-256color, | ||
setb24=\E[48;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm, | ||
setf24=\E[38;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
--- | ||
dependencies: | ||
- role: kubectl | ||
kubectl_upgrade: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: Restart the NTP service to enable timedate synchronization | ||
service: | ||
name: ntp | ||
enabled: true | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
- name: Ensure that NTP is installed | ||
apt: name=ntp state=present | ||
|
||
- name: "TODO: install a static NTP config to /etc/ntp.conf" | ||
command: "true" | ||
- name: Set the timezone to UTC | ||
command: timedatectl set-timezone UTC | ||
|
||
- name: Restart the NTP service to enable timedate synchronization | ||
service: name=ntp state=started | ||
- name: Ensure that NTP is installed | ||
apt: | ||
pkg: ntp | ||
state: present | ||
notify: Restart ntp |
This file was deleted.
Oops, something went wrong.