Skip to content
Snippets Groups Projects
Commit fec500d4 authored by George Kontogiorgos's avatar George Kontogiorgos :crystal_ball:
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #174652 failed
exclude_paths:
- molecule/default/create.yml
skip_list:
- '602'
- '204'
- '106'
[flake8]
ignore = E501,W503,E203,E402
.molecule
.vagrant
.cache
*.swp
.DS_Store
__pycache__
*.pyc
.vault_pass
---
include: 'https://gitlab.esss.lu.se/ics-infrastructure/gitlab-ci-yml/raw/master/Molecule.gitlab-ci.yml'
---
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
# NOTE(retr0h): Templates no longer fail this lint rule.
# Uncomment if running old Molecule templates.
# truthy: disable
LICENSE 0 → 100644
BSD 2-Clause License
Copyright (c) 2024, European Spallation Source ERIC
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ics-ans-role-syn1588-ess
Ansible role to perform ESS custom configuration on Oregano syn1588® PCIe NIC computer..
## Role Variables
```yaml
...
```
## Example Playbook
```yaml
- hosts: servers
roles:
- role: ics-ans-role-syn1588-ess
```
## License
BSD 2-clause
---
---
galaxy_info:
author: George Nicolas Kontogiorgos
company: European Spallation Source ERIC
description: Ansible role to perform ESS custom configuration on Oregano syn1588® PCIe NIC computer..
license: BSD
min_ansible_version: 2.7
platforms:
- name: Ubuntu
versions:
- jammy
dependencies: []
# List your role dependencies here, one per line.
# Be sure to remove the '[]' above if you add dependencies
# to this list.
---
- name: Converge
hosts: all
become: true
roles:
- role: ics-ans-role-syn1588-ess
---
dependency:
name: galaxy
lint: |
set -e
yamllint .
ansible-lint
flake8
provisioner:
name: ansible
config_options:
defaults:
gather_timeout: 20
inventory:
group_vars:
molecule_group:
verifier:
name: testinfra
driver:
name: vagrant
provider:
name: virtualbox
platforms:
- name: syn1588-ess-default
box: ubuntu/jammy64
memory: 2048
cpus: 1
instance_raw_config_args:
- "vbguest.auto_update = false"
groups:
- molecule_group
---
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
become: true
changed_when: false
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_default(host):
# TODO: implement at least a test
assert False
---
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment