Skip to content

Commit 5f6d245

Browse files
authored
feat: add ansible inventory plugin
1 parent 6b8fc16 commit 5f6d245

39 files changed

+562
-77
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/tmp/
22
/disks/
3+
/plugins/

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/tmp/
22
/disks/
3-
/socks/
3+
/socks/
4+
5+
__pycache__/

.vscode/extensions.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"foxundermoon.shell-format",
66
"yzhang.markdown-all-in-one",
77
"timonwong.shellcheck",
8-
"shardulm94.trailing-spaces"
8+
"shardulm94.trailing-spaces",
9+
"ms-python.python",
10+
"redhat.vscode-yaml"
911
]
1012
}

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG BUILDTAGS=""
1717
RUN --mount=type=bind,target=. \
1818
--mount=type=cache,target=/go/pkg/mod \
1919
--mount=type=cache,target=/root/.cache \
20-
go build -tags "${BUILDTAGS}" -trimpath -ldflags "${LDFLAGS}" -o "/devmachines-runtime" .
20+
go build -tags "${BUILDTAGS}" -trimpath -ldflags "${LDFLAGS}" -o "/devmachines-runtime" ./cmd/devmachines-runtime
2121

2222
FROM scratch AS binary
2323
COPY --from=build /devmachines-runtime /devmachines-runtime
@@ -33,3 +33,7 @@ COPY ./static/ /static/
3333
COPY --link --from=devmachines/novnc /vnc_lite.html /static/vnc/index.html
3434

3535
CMD ["/devmachines-runtime"]
36+
37+
EXPOSE 22/tcp 8080/tcp 8081/tcp
38+
39+
VOLUME /socks /disks

ansible/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ansible Collection - devmachines.core
2+
3+
Documentation for the collection.

ansible/galaxy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
# See https://docs.ansible.com/ansible/latest/dev_guide/collections_galaxy_meta.html
3+
4+
namespace: devmachines
5+
name: core
6+
version: 0.1.0
7+
readme: README.md
8+
authors:
9+
- Daniil Utkin (github.com/erlnby)
10+
description: DevMachines collection for Ansible
11+
license:
12+
- GPL-3.0-or-later
13+
tags:
14+
- devmachines
15+
dependencies:
16+
community.docker: ">=4.6.0,<5.0.0"
17+
repository: https://github.com/utkin-tech/devmachiness
18+
documentation: https://github.com/utkin-tech/devmachines/tree/main/docs/ansible
19+
homepage: https://github.com/utkin-tech/devmachines
20+
issues: https://github.com/utkin-tech/devmachines/issues

ansible/meta/runtime.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
requires_ansible: '>=2.16.0'

0 commit comments

Comments
 (0)