Skip to content

Commit

Permalink
Add sudo and ssh to containers
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Dec 9, 2024
1 parent 24f23c3 commit 9ceff82
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom/testing/golden-state-tree/os/amazon/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ include:
- pkgs.rpmdevtools
- pkgs.rsync
- pkgs.sed
- pkgs.sudo
- pkgs.ssh
- pkgs.swig
- pkgs.tar
- pkgs.zlib
Expand Down
2 changes: 2 additions & 0 deletions custom/testing/golden-state-tree/os/amazon2023/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ include:
- pkgs.rsync
- pkgs.sed
- pkgs.swig
- pkgs.ssh
- pkgs.sudo
- pkgs.tar
- pkgs.zlib
- pkgs.vault
Expand Down
2 changes: 2 additions & 0 deletions custom/testing/golden-state-tree/os/debian/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ include:
- pkgs.rng-tools
- pkgs.rsync
- pkgs.sed
- pkgs.ssh
- pkgs.sudo
- pkgs.swig
- pkgs.tar
- pkgs.zlib
Expand Down
2 changes: 2 additions & 0 deletions custom/testing/golden-state-tree/os/fedora/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ include:
- pkgs.rng-tools
- pkgs.rpmdevtools
- pkgs.rsync
- pkgs.sudo
- pkgs.ssh
- pkgs.sed
- pkgs.swig
- pkgs.tar
Expand Down
2 changes: 2 additions & 0 deletions custom/testing/golden-state-tree/os/photon/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ include:
{%- endif %}
- pkgs.rsync
- pkgs.sed
- pkgs.sudo
- pkgs.ssh
- pkgs.swig
- pkgs.tar
- pkgs.zlib
Expand Down
2 changes: 2 additions & 0 deletions custom/testing/golden-state-tree/os/rocky/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ include:
- pkgs.rpmdevtools
- pkgs.rsync
- pkgs.sed
- pkgs.ssh
- pkgs.sudo
- pkgs.swig
- pkgs.tar
- pkgs.tree
Expand Down
2 changes: 2 additions & 0 deletions custom/testing/golden-state-tree/os/ubuntu/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ include:
- pkgs.python3-venv
- pkgs.rng-tools
- pkgs.rsync
- pkgs.ssh
- pkgs.sudo
- pkgs.sed
- pkgs.systemd
- pkgs.swig
Expand Down
15 changes: 15 additions & 0 deletions custom/testing/golden-state-tree/pkgs/ssh.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{%- if grains['os_family'] in ('RedHat', 'Suse') %}
{%- set client_pkg = "openssh" -%}
{%- set server_pkg = "openssh-server" -%}
{%- else %}
{%- set client_pkg = "openssh-client" -%}
{%- set server_pkg = "openssh-server" -%}
{%- endif %}

ssh-client:
pkg.installed:
- name: {{ client_pkg }}

ssh-server:
pkg.installed:
- name: {{ server_pkg }}

0 comments on commit 9ceff82

Please sign in to comment.