Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.

Commit

Permalink
Ansible galaxy publication
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Jul 11, 2019
1 parent 19d87d0 commit 189ab75
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ language: python
services: docker

install:
- pip install molecule[docker]
- pip install molecule[docker] --pre

script:
- molecule test
Expand Down
24 changes: 7 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[![Build Status](https://travis-ci.org/Accelize/ansible-role-aws-fpga.svg?branch=master)](https://travis-ci.org/Accelize/ansible-role-aws-fpga)

AWS FPGA Ansible Role
=====================

This Ansible role install the [AWS FPGA](https://github.com/aws/aws-fpga)
runtime libraries and utilities that are required to run FPGA devices based
application on AWS F1 instances.
This Ansible role install the [AWS FPGA](https://github.com/aws/aws-fpga) runtime libraries and utilities that are required to run FPGA devices based application on AWS F1 instances.

Requirements
------------
Expand All @@ -15,18 +15,10 @@ The role requires to be run as root on the target host.
Role Variables
--------------

* **aws_fpga_allow_non_root**: If `true`, allow FPGA devices access to users in
the group specified by *aws_fpga_sdk_group*. Default to `false`.
* **aws_fpga_sdk_group**: Name of the group of users that can access to FPGA
devices. Default to `fpgauser`. No effect if *aws_fpga_allow_non_root* is
`false`.
* **aws_fpga_sdk_override_group**: If true, do not raise error if the group
specified by *aws_fpga_sdk_group* already exists. Default to `false`.
No effect if *aws_fpga_allow_non_root* is `false`.
* **fpga_driver**: FPGA driver name. If specified, install and enable the
specified Linux kernel driver. See
[AWS FPGA linux kernel drivers](https://github.com/aws/aws-fpga/tree/master/sdk/linux_kernel_drivers)
for the list of available drivers.
* **aws_fpga_allow_non_root**: If `true`, allow FPGA devices access to users in the group specified by *aws_fpga_sdk_group*. Default to `false`.
* **aws_fpga_sdk_group**: Name of the group of users that can access to FPGA devices. Default to `fpgauser`. No effect if *aws_fpga_allow_non_root* is `false`.
* **aws_fpga_sdk_override_group**: If true, do not raise error if the group specified by *aws_fpga_sdk_group* already exists. Default to `false`. No effect if *aws_fpga_allow_non_root* is `false`.
* **fpga_driver**: FPGA driver name. If specified, install and enable the specified Linux kernel driver. See [AWS FPGA linux kernel drivers](https://github.com/aws/aws-fpga/tree/master/sdk/linux_kernel_drivers) for the list of available drivers.

Example Playbook
----------------
Expand All @@ -38,8 +30,6 @@ Including an example of how to use your role (for instance, with variables passe
become: true
roles:
- role: accelize.aws_fpga
vars:
aws_fpga_allow_non_root: true
```
Dependencies
Expand Down
32 changes: 32 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
galaxy_info:
role_name: aws_fpga
author: Accelize
description: 'This Ansible role install the AWS FPGA runtime libraries and utilities.'
company: Accelize
license: Apache License 2.0
min_ansible_version: '2.8'
platforms:
- name: EL
versions:
- 7
- name: Ubuntu
versions:
- xenial
- bionic
- name: Debian
versions:
- stretch
- buster
- name: Fedora
versions:
- 29
- 30
galaxy_tags:
- system
- cloud
- fpga
- aws
- amazon
- ec2
dependencies: []
13 changes: 5 additions & 8 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ lint:
platforms:
- name: ubuntu_bionic
image: ubuntu:bionic
- name: ubuntu_xenial
image: ubuntu:xenial
- name: debian_stretch
image: debian:stretch
- name: debian_buster
image: debian:buster
- name: ubuntu_latest
image: ubuntu:latest
privileged: true
- name: centos_7
image: centos:7
privileged: true
- name: fedora_29
image: fedora:29
privileged: true
provisioner:
name: ansible
lint:
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
- name: Converge
hosts: all
roles:
- role: accelize.aws_fpga
- role: ansible-role-aws-fpga

0 comments on commit 189ab75

Please sign in to comment.