add netbox role for ensuring netbox is deployed as specified
The role takes over the deployment of netbox and its dependencies, while still requiring the user to provide the netbox version, db password and config as well as to set up a web server and handle stuff like creating users, etc.
This commit is contained in:
parent
c307e81d9f
commit
cf33fb2e0e
5 changed files with 227 additions and 0 deletions
12
roles/netbox/meta/argument_specs.yaml
Normal file
12
roles/netbox/meta/argument_specs.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
argument_specs:
|
||||
main:
|
||||
options:
|
||||
netbox__version:
|
||||
type: str
|
||||
required: true
|
||||
netbox__db_password:
|
||||
type: str
|
||||
required: true
|
||||
netbox__config:
|
||||
type: str
|
||||
required: true
|
11
roles/netbox/meta/main.yaml
Normal file
11
roles/netbox/meta/main.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: redis
|
||||
- role: postgresql
|
||||
vars:
|
||||
postgresql__dbs:
|
||||
- name: netbox
|
||||
owner: netbox
|
||||
postgresql__users:
|
||||
- name: netbox
|
||||
password: "{{ netbox__db_password }}"
|
Loading…
Add table
Add a link
Reference in a new issue