-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert every installation possible to using `package` not `apt` * Add dist-specific files where this doesn't work, with tags to include appropriately * Update README * New Docker image (TODO: molecule...) * Extra CI step for Manjaro
- Loading branch information
1 parent
98cef30
commit fc5ff52
Showing
10 changed files
with
218 additions
and
124 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
build-ubuntu: | ||
docker: | ||
- image: docker:stable-git | ||
steps: | ||
- checkout | ||
- setup_remote_docker: | ||
version: 20.10.12 | ||
- run: | ||
name: Build in Docker | ||
name: Test on Ubuntu in Docker | ||
command: docker build -t workstation-playbook:latest . | ||
no_output_timeout: 20m | ||
|
||
build-manjaro: | ||
docker: | ||
- image: docker:stable-git | ||
steps: | ||
- checkout | ||
- setup_remote_docker: | ||
version: 20.10.12 | ||
- run: | ||
name: Test on Manjaro in Docker | ||
command: docker build -t workstation-playbook:latest -f Dockerfile.manjaro . | ||
no_output_timeout: 20m |
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,31 @@ | ||
FROM manjarolinux/base:latest | ||
ARG CI="true" | ||
ARG user="user" | ||
|
||
RUN cat /etc/group | ||
|
||
RUN useradd --create-home $user \ | ||
&& mkdir /home/$user/.config \ | ||
&& chown -R user /home/$user \ | ||
&& usermod -a -G adm $user | ||
|
||
|
||
RUN pacman -Sy --noconfirm ansible unzip | ||
|
||
# Need passwordless access | ||
RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
# More realistic | ||
USER $user | ||
|
||
COPY requirements.yml ./ | ||
RUN ansible-galaxy install -r requirements.yml | ||
|
||
COPY group_vars group_vars | ||
COPY playbook.yml ./ | ||
COPY templates templates | ||
COPY roles roles | ||
|
||
RUN export CI="$CI" | ||
|
||
RUN ansible-playbook -e user=$user playbook.yml -c localhost --skip-tags ubuntu |
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
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,3 +1,4 @@ | ||
terraform_version: 1.1.9 | ||
openjdk_version: 18 | ||
node_version: 16 | ||
debian_openjdk_version: 18 | ||
arch_openjdk_version: 17 | ||
debian_node_version: 16 |
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,18 @@ | ||
--- | ||
- name: Install Arch-specific apps | ||
become: yes | ||
package: | ||
state: latest | ||
name: | ||
- docker | ||
- "jdk{{ arch_openjdk_version }}-openjdk" | ||
- ttf-meslo-nerd-font-powerlevel10k | ||
- bat | ||
|
||
- name: Install Node JS LTS | ||
become: true | ||
package: | ||
name: nodejs-lts-gallium | ||
state: latest | ||
|
||
# TODO: Poetry + AWSCLI |
Oops, something went wrong.