Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit b946468

Browse files
bswinnertonpaulfantom
authored andcommitted
Add support for Clear linux (#55)
[minor]
1 parent e71dbb9 commit b946468

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

molecule/default/molecule.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ platforms:
4242
privileged: true
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:ro
45+
- name: clearlinux
46+
image: paulfantom/clearlinux-molecule:latest
47+
docker_host: "${DOCKER_HOST:-unix://var/run/docker.sock}"
48+
privileged: true
49+
volumes:
50+
- /sys/fs/cgroup:/sys/fs/cgroup:ro
4551
provisioner:
4652
name: ansible
4753
lint:

tasks/install.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
delegate_to: localhost
4444
check_mode: false
4545

46+
- name: Create /usr/local/bin
47+
file:
48+
path: /usr/local/bin
49+
state: directory
50+
mode: 0755
51+
4652
- name: Propagate node_exporter binaries
4753
copy:
4854
src: "/tmp/node_exporter-{{ node_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/node_exporter"

tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- name: Gather variables for each operating system
33
include_vars: "{{ item }}"
44
with_first_found:
5+
- "{{ ansible_distribution_file_variety | lower }}.yml"
56
- "{{ ansible_distribution | lower }}.yml"
67
- "{{ ansible_os_family | lower }}.yml"
78
tags:

vars/clearlinux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
node_exporter_dependencies:
3+
- sysadmin-basic

0 commit comments

Comments
 (0)