Browse Source

[UPD] latest cookies

master
Justin Lecher 2 months ago
parent
commit
3d5acee9e5
  1. 16
      roles/hostname/.cruft.json
  2. 3
      roles/hostname/.yamllint
  3. 22
      roles/hostname/Makefile
  4. 9
      roles/hostname/README.md
  5. 3
      roles/hostname/meta/main.yml
  6. 2
      roles/hostname/molecule/default/converge.yml
  7. 1
      roles/hostname/molecule/default/tests/test_role.py
  8. 4
      roles/hostname/tests/test.yml
  9. 16
      roles/hwrng/.cruft.json
  10. 41
      roles/hwrng/.yamllint
  11. 22
      roles/hwrng/Makefile
  12. 7
      roles/hwrng/README.md
  13. 5
      roles/hwrng/meta/main.yml
  14. 2
      roles/hwrng/molecule/default/converge.yml
  15. 1
      roles/hwrng/molecule/default/tests/test_role.py
  16. 10
      roles/hwrng/molecule/default/verify.yml
  17. 4
      roles/hwrng/tests/test.yml

16
roles/hostname/.cruft.json

@ -0,0 +1,16 @@
{
"template": "git@git.ercpe.de:justin/cookiecutter-ansible-role.git",
"commit": "535763e2ecf28ae3cd451ce070dfb2614893d491",
"context": {
"cookiecutter": {
"full_name": "Justin Lecher",
"email": "justin@jlec.de",
"ansible_namespace": "jlec",
"ansible_collection": "system",
"role_name": "hostname",
"role_short_description": "Configure local hostname",
"_template": "git@git.ercpe.de:justin/cookiecutter-ansible-role.git"
}
},
"directory": null
}

roles/hostname/.yamllint.yml → roles/hostname/.yamllint

@ -36,3 +36,6 @@ rules:
truthy: disable
line-length:
max: 128
ignore: |
ansible_collections

22
roles/hostname/Makefile

@ -1,7 +1,21 @@
.PHONY: status lint converge test clean
MOLECULE = pipenv run molecule
.PHONY: help update
help:
@echo "Make targets:\n"
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
update:
cruft update
################################################################################
#
# Molecule logic
#
################################################################################
.PHONY: status lint converge test clean destroy
status:
$(MOLECULE) list
@ -14,5 +28,7 @@ converge:
test:
$(MOLECULE) test
clean:
destroy:
$(MOLECULE) destroy
clean: destroy

9
roles/hostname/README.md

@ -1,7 +1,7 @@
Role Name
jlec.system.hostname
=========
Configure hostname of node
Configure local hostname
Requirements
------------
@ -21,9 +21,12 @@ None
Example Playbook
----------------
```
- hosts: servers
roles:
- role: jlec.system.hostname
vars: {}
```
License
-------
@ -33,4 +36,4 @@ Apache-2.0
Author Information
------------------
Justin Lecher <justin@jlec.de>
* Justin Lecher <justin@jlec.de>

3
roles/hostname/meta/main.yml

@ -10,6 +10,9 @@ galaxy_info:
- name: Ubuntu
versions:
- 20.04
- name: CentOS
versions:
- 7.8
galaxy_tags: []

2
roles/hostname/molecule/default/converge.yml

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- jlec.system
tasks:
- name: "Include hostname role"
include_role:

1
roles/hostname/molecule/default/tests/test_role.py

@ -0,0 +1 @@
# Add your testinfra code here

4
roles/hostname/tests/test.yml

@ -1,5 +1,7 @@
---
- hosts: localhost
remote_user: root
collections:
- jlec.system
roles:
- hostname
- role: "hostname"

16
roles/hwrng/.cruft.json

@ -0,0 +1,16 @@
{
"template": "git@git.ercpe.de:justin/cookiecutter-ansible-role.git",
"commit": "535763e2ecf28ae3cd451ce070dfb2614893d491",
"context": {
"cookiecutter": {
"full_name": "Justin Lecher",
"email": "justin@jlec.de",
"ansible_namespace": "jlec",
"ansible_collection": "system",
"role_name": "hwrng",
"role_short_description": "Configure the hw random number generator",
"_template": "git@git.ercpe.de:justin/cookiecutter-ansible-role.git"
}
},
"directory": null
}

41
roles/hwrng/.yamllint

@ -0,0 +1,41 @@
---
# Based on ansible-lint config
extends: default
yaml-files:
- '*.yaml'
- '*.yml'
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
comments: disable
comments-indentation: disable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation: disable
key-duplicates: enable
new-line-at-end-of-file: disable
new-lines:
type: unix
trailing-spaces: disable
truthy: disable
line-length:
max: 128
ignore: |
ansible_collections

22
roles/hwrng/Makefile

@ -1,7 +1,21 @@
.PHONY: status lint converge test clean
MOLECULE = pipenv run molecule
.PHONY: help update
help:
@echo "Make targets:\n"
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
update:
cruft update
################################################################################
#
# Molecule logic
#
################################################################################
.PHONY: status lint converge test clean destroy
status:
$(MOLECULE) list
@ -14,5 +28,7 @@ converge:
test:
$(MOLECULE) test
clean:
destroy:
$(MOLECULE) destroy
clean: destroy

7
roles/hwrng/README.md

@ -1,4 +1,4 @@
Role Name
jlec.system.hwrng
=========
Configure the hw random number generator
@ -21,9 +21,12 @@ None
Example Playbook
----------------
```
- hosts: servers
roles:
- role: jlec.system.hwrng
vars: {}
```
License
-------
@ -33,4 +36,4 @@ Apache-2.0
Author Information
------------------
Justin Lecher <justin@jlec.de>
* Justin Lecher <justin@jlec.de>

5
roles/hwrng/meta/main.yml

@ -1,7 +1,7 @@
---
galaxy_info:
author: Justin Lecher
description: Configure rng-tools
description: Configure the hw random number generator
license: Apache-2.0
min_ansible_version: 2.1
@ -10,6 +10,9 @@ galaxy_info:
- name: Ubuntu
versions:
- 20.04
- name: CentOS
versions:
- 7.8
galaxy_tags: []

2
roles/hwrng/molecule/default/converge.yml

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- jlec.system
tasks:
- name: "Include hwrng role"
include_role:

1
roles/hwrng/molecule/default/tests/test_role.py

@ -0,0 +1 @@
# Add your testinfra code here

10
roles/hwrng/molecule/default/verify.yml

@ -0,0 +1,10 @@
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Example assertion
assert:
that: true

4
roles/hwrng/tests/test.yml

@ -1,5 +1,7 @@
---
- hosts: localhost
remote_user: root
collections:
- jlec.system
roles:
- hwrng
- role: "hwrng"
Loading…
Cancel
Save