This repository has been archived by the owner on Jan 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
607 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
accelpy/_ansible/roles/container_service/molecule/default/app.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Ansible role | ||
============ | ||
|
||
The setup of the application is performed by one or more Ansible role. | ||
|
||
Si allow to fully configure the host as wish. | ||
|
||
Application definition | ||
---------------------- | ||
|
||
This application type support the following package types: | ||
|
||
* `ansible_role`: A role available on Ansible Galaxy or in a local subdirectory | ||
named `roles`. | ||
* `vm_image`: An image of an already provisioned virtual machine. | ||
|
||
Example snippet of application definition file: | ||
|
||
.. code-block:: yaml | ||
application: | ||
name: my_application | ||
version: 1.0.2 | ||
type: ansible_role | ||
package: | ||
- name: ansible_galaxy_namespace.role_name | ||
type: ansible_role | ||
- name: ansible_galaxy_namespace.role_name | ||
type: ansible_role | ||
.. note:: Any application definition published using `accely push` require that | ||
roles are available on `Ansible Galaxy <https://galaxy.ansible.com>`_. | ||
|
||
Variables | ||
~~~~~~~~~ | ||
|
||
This application support any variables. All variables will be available in | ||
Ansible roles. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
application: | ||
product_id: secureic-trng | ||
type: ansible_role | ||
version: 1.0.0 | ||
|
||
firewall_rules: | ||
- start_port: 80 | ||
end_port: 80 | ||
protocol: tcp | ||
direction: ingress | ||
- start_port: 443 | ||
end_port: 443 | ||
protocol: tcp | ||
direction: ingress | ||
|
||
fpga: | ||
count: 1 | ||
|
||
package: | ||
type: ansible_role | ||
name: secureic_trng | ||
|
||
accelize_drm: | ||
conf: | ||
licensing: | ||
url: https://master.metering.accelize.com | ||
drm: | ||
frequency_mhz: 250 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* Amazon Web Service user configuration */ | ||
|
||
# Instance profile IAM role policy | ||
# ================================== | ||
# | ||
# Allow logging on Cloudwatch | ||
|
||
locals { | ||
policy = <<EOF | ||
{ | ||
"Version": "2012-10-17", "Statement": [ | ||
{"Sid": "AllowDescribeFpgaImages", | ||
"Effect": "Allow", | ||
"Action": ["ec2:DescribeFpgaImages"], | ||
"Resource": ["*"]}, | ||
{"Sid": "AllowCloudwatchLogging", | ||
"Effect": "Allow", | ||
"Action": ["logs:CreateLogGroup", "logs:CreateLogStream", | ||
"logs:PutLogEvents", "logs:DescribeLogStreams"], | ||
"Resource": ["*"]} | ||
] | ||
} | ||
EOF | ||
} |
22 changes: 22 additions & 0 deletions
22
examples/secureic_trng/roles/secureic_trng/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
# Set to non empty string to enable debug output | ||
debug_mode: '' | ||
|
||
# FPGA image binary | ||
fpga_binary: /usr/lib/python3.6/site-packages/trng/app.awsxclbin | ||
|
||
# Same as "accelize.accelize_drm" role varibles | ||
accelize_drm_driver_name: aws_f1 | ||
accelize_drm_conf_dst: /etc/accelize_drm/conf.json | ||
accelize_drm_cred_dst: /root/.accelize_drm/cred.json | ||
|
||
# Nginx SSL certificate | ||
nginx_ssl_certificate: | ||
nginx_ssl_certificate_dst: /etc/pki/tls/certs/trng.crt | ||
nginx_ssl_trusted_certificate: | ||
nginx_ssl_trusted_certificate_dst: /etc/pki/tls/certs/trng_ca.crt | ||
nginx_ssl_certificate_key: | ||
nginx_ssl_certificate_key_dst: /etc/pki/tls/private/trng.key | ||
|
||
# Gunicorn socket path | ||
gunicorn_socket: /var/run/gunicorn.sock |
Binary file not shown.
Oops, something went wrong.