Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
wzzrd committed Feb 13, 2024
1 parent 746ff55 commit 8081655
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 78 deletions.
27 changes: 8 additions & 19 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace: wzzrd
name: atuin

# The version of the collection. Must be compatible with semantic versioning
version: 0.5.1
version: 0.5.2

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand All @@ -26,33 +26,22 @@ description: Install and manage atuin on your systems
# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only
# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file'
license:
- GPL-2.0-or-later

# The path to the license file for the collection. This path is relative to the root of the collection. This key is
# mutually exclusive with 'license'
license_file: ''
- BSD-3-Clause

# A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character
# requirements as 'namespace' and 'name'
tags: []
tags:
- atuin

# Collections that this collection requires to be installed for it to be usable. The key of the dict is the
# collection label 'namespace.name'. The value is a version range
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
# range specifiers can be set and are separated by ','
dependencies: {}

# The URL of the originating SCM repository
repository: http://example.com/repository
repository: https://github.com/wzzrd/ansible-collection-atuin

# The URL to any online docs
documentation: http://docs.example.com
documentation: https://github.com/wzzrd/ansible-collection-atuin

# The URL to the homepage of the collection/project
homepage: http://example.com
homepage: https://github.com/wzzrd/ansible-collection-atuin

# The URL to the collection issue tracker
issues: http://example.com/issue/tracker
issues: https://github.com/wzzrd/ansible-collection-atuin/issues

# A list of file glob-like patterns used to filter any files or directories that should not be included in the build
# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This
Expand Down
2 changes: 1 addition & 1 deletion roles/atuin_client/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# defaults file for atuin_client
atuin_client_bin_dir: /usr/local/bin
atuin_client_libc_variant: gnu
atuin_client_libc_variant: gnu
57 changes: 13 additions & 44 deletions roles/atuin_client/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,21 @@
galaxy_info:
author: your name
description: your role description
company: your company (optional)
author: Maxim Burgerhout
description: Role to deploy the atuin shell history tool
company: None

# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
issue_tracker_url: https://github.com/wzzrd/ansible-collection-atuin/issues

# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: license (GPL-2.0-or-later, MIT, etc)
license: BSD-3-Clause

min_ansible_version: 2.1
min_ansible_version: "2.15"

# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
platforms:
- name: EL
versions:
- "8"
- "9"

#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
# To view available platforms and versions (or releases), visit:
# https://galaxy.ansible.com/api/v1/platforms/
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99

galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
galaxy_tags:
- atuin

dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.
5 changes: 5 additions & 0 deletions roles/atuin_client/molecule/docker/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@
ansible.builtin.assert:
that:
- atuin_stat_result.stat.exists

- name: Verify we can start atuin
ansible.builtin.command:
cmd: atuin --version
changed_when: false
1 change: 0 additions & 1 deletion roles/atuin_client/molecule/podman/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
- role: atuin_client
vars:
atuin_client_version: 18.0.0

11 changes: 8 additions & 3 deletions roles/atuin_client/molecule/podman/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ platforms:
- name: ubi8
image: ubi8/ubi-init
pre_build_image: true
rootless: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
command: "/usr/sbin/init"
extra_opts:
- --arch=x86_64
- name: ubi9
image: ubi9/ubi-init
pre_build_image: true
rootless: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
command: "/usr/sbin/init"
extra_opts:
- --arch=x86_64
provisioner:
Expand All @@ -27,7 +33,6 @@ provisioner:
verifier:
name: ansible
driver:
name: podman
options:
managed: true
login_cmd_template: "podman exec -ti {instance} bash"
Expand Down
7 changes: 6 additions & 1 deletion roles/atuin_client/molecule/podman/verify.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Verify
hosts: molecule
hosts: all
# We disable gather facts because it would fail due to our container not
# having python installed. This will not prevent use from running 'raw'
# commands. Most molecule users are expected to use containers that already
Expand All @@ -18,3 +18,8 @@
ansible.builtin.assert:
that:
- atuin_stat_result.stat.exists

- name: Verify we can start atuin
ansible.builtin.command:
cmd: atuin --version
changed_when: false
3 changes: 1 addition & 2 deletions roles/atuin_client/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
ansible.builtin.set_fact:
atuin_client_artifact: atuin-v{{ atuin_client_version }}-{{ ansible_architecture }}-unknown-linux-{{ atuin_client_libc_variant }}.tar.gz # noqa yaml[line-length]

- name: show values
- name: Show artifact name
ansible.builtin.debug:
msg: "{{ atuin_client_artifact }}"
when:
Expand Down Expand Up @@ -74,4 +74,3 @@
ansible.builtin.file:
path: /tmp/atuin-v{{ atuin_client_version }}-{{ ansible_architecture }}-unknown-linux-{{ atuin_client_libc_variant }}"
state: absent

2 changes: 0 additions & 2 deletions roles/atuin_client/tests/inventory

This file was deleted.

5 changes: 0 additions & 5 deletions roles/atuin_client/tests/test.yml

This file was deleted.

0 comments on commit 8081655

Please sign in to comment.