Skip to content

Commit

Permalink
add salt container
Browse files Browse the repository at this point in the history
  • Loading branch information
estenrye committed Aug 10, 2023
1 parent 3736786 commit 632ba9d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker/estenrye/salt/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ubuntu:22.04 AS Base
ARG SALT_VERSION=3005.1-4
ADD https://repo.saltproject.io/salt/singlebin/${SALT_VERSION}/salt-${SALT_VERSION}-linux-amd64.tar.gz salt-linux-amd64.tar.gz
RUN cd /usr/bin && tar -xzvf /salt-linux-amd64.tar.gz

FROM ubuntu:22.04
ENV GIT_OPT_GET_SSL_CERT_LOCATIONS=/etc/ssl/certs
COPY --from=Base /usr/bin/salt /usr/bin/salt
RUN apt update && apt install -y \
ca-certificates \
libgit2-1.1 \
&& /usr/bin/salt pip install pygit2 \
# workaround https://github.com/iterative/dvc/issues/7207
&& mkdir -p /etc/pki/tls \
&& ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/cert.pem
COPY etc/salt /etc/salt
ENTRYPOINT [ "/usr/bin/salt" ]

9 changes: 9 additions & 0 deletions docker/estenrye/salt/etc/salt/master.d/fileserver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fileserver_backend:
- gitfs

gitfs_ssl_verify: False

gitfs_provider: pygit2

gitfs_remotes:
- https://github.com/linuxacademy/content-salt-project-base.git
2 changes: 2 additions & 0 deletions docs/ids.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
| nginx | 10001 |
| netbox | 10002 |
| shoelaces | 10003 |
| docker | 10004 |
| tftp | 35000 |

## Group GID
Expand All @@ -20,4 +21,5 @@
| nginx | 10001 |
| netbox | 10002 |
| shoelaces | 10003 |
| docker | 10004 |
| tftp | 35000 |

0 comments on commit 632ba9d

Please sign in to comment.