This commit is contained in:
parent
82f850269c
commit
510baf18cd
@ -31,7 +31,7 @@ local PipelineDeployment(scenario='centos7') = {
|
|||||||
},
|
},
|
||||||
workspace: {
|
workspace: {
|
||||||
base: '/drone/src',
|
base: '/drone/src',
|
||||||
path: 'xoxys.bitwarden_rs',
|
path: 'xoxys.bitwardenrs_docker',
|
||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
@ -80,7 +80,7 @@ local PipelineDocumentation = {
|
|||||||
name: 'publish',
|
name: 'publish',
|
||||||
image: 'plugins/gh-pages:latest',
|
image: 'plugins/gh-pages:latest',
|
||||||
settings: {
|
settings: {
|
||||||
remote_url: "https://gitea.rknet.org/ansible/xoxys.bitwarden_rs",
|
remote_url: "https://gitea.rknet.org/ansible/xoxys.bitwardenrs_docker",
|
||||||
netrc_machine: "gitea.rknet.org",
|
netrc_machine: "gitea.rknet.org",
|
||||||
username: { from_secret: 'gitea_username' },
|
username: { from_secret: 'gitea_username' },
|
||||||
password: { from_secret: 'gitea_token' },
|
password: { from_secret: 'gitea_token' },
|
||||||
|
@ -31,7 +31,7 @@ concurrency:
|
|||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /drone/src
|
base: /drone/src
|
||||||
path: xoxys.bitwarden_rs
|
path: xoxys.bitwardenrs_docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ansible-molecule
|
- name: ansible-molecule
|
||||||
@ -79,7 +79,7 @@ steps:
|
|||||||
pages_directory: _docs/
|
pages_directory: _docs/
|
||||||
password:
|
password:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
remote_url: https://gitea.rknet.org/ansible/xoxys.bitwarden_rs
|
remote_url: https://gitea.rknet.org/ansible/xoxys.bitwardenrs_docker
|
||||||
target_branch: docs
|
target_branch: docs
|
||||||
username:
|
username:
|
||||||
from_secret: gitea_username
|
from_secret: gitea_username
|
||||||
@ -147,6 +147,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 8932d9e6f7c92d8843e0f762f7a53b16808c41a7812682023842026d68cb19db
|
hmac: 52f5d7f4eaba07c6528e2a60430859d57194cc650d05e9d77e05093dcc67ada1
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# xoxys.bitwarden_rs
|
# xoxys.bitwardenrs_docker
|
||||||
|
|
||||||
[![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.bitwarden_rs/status.svg)](https://drone.rknet.org/ansible/xoxys.bitwarden_rs)
|
[![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.bitwardenrs_docker/status.svg)](https://drone.rknet.org/ansible/xoxys.bitwardenrs_docker)
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# xoxys.bitwarden_rs
|
# xoxys.bitwardenrs_docker_docker
|
||||||
|
|
||||||
[![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.bitwarden_rs/status.svg)](https://drone.rknet.org/ansible/xoxys.bitwarden_rs)
|
[![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.bitwardenrs_docker/status.svg)](https://drone.rknet.org/ansible/xoxys.bitwardenrs_docker)
|
||||||
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
|
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
|
||||||
|
|
||||||
Role to setup a [Bitwarden RS](https://github.com/dani-garcia/bitwarden_rs) passsword safe. Bitwarden_RS is a community Bitwarden API server implementation written in Rust. This Role use Docker to setup [Bitwarden](https://gitea.rknet.org/docker/bitwarden_rs) and a [Bitwarden LDAP](https://gitea.rknet.org/docker/bitwarden_rs_ldap) Sync Service (optional).
|
Role to setup a [Bitwarden RS](https://github.com/dani-garcia/bitwardenrs) password safe. Bitwarden_RS is a community Bitwarden API server implementation written in Rust. This Role use Docker to setup [Bitwarden](https://gitea.rknet.org/docker/bitwardenrs) and a [Bitwarden LDAP](https://gitea.rknet.org/docker/bitwardenrs_ldap) Sync Service (optional).
|
||||||
|
|
||||||
You can find the full documentation at [galaxy.geekdocs.de](https://galaxy.geekdocs.de/role/bitwarden_rs).
|
You can find the full documentation at [galaxy.geekdocs.de](https://galaxy.geekdocs.de/role/bitwardenrs).
|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ bitwardenrs_version: latest
|
|||||||
bitwardenrs_service_directory: /var/lib/docker/services/bitwardenrs
|
bitwardenrs_service_directory: /var/lib/docker/services/bitwardenrs
|
||||||
|
|
||||||
bitwardenrs_container_name: bitwardenrs
|
bitwardenrs_container_name: bitwardenrs
|
||||||
bitwardenrs_image: "xoxys/bitwardenrs:{{ bitwardenrs_version }}"
|
bitwardenrs_image: "xoxys.bitwardenrs_docker:{{ bitwardenrs_version }}"
|
||||||
bitwardenrs_restart_policy: on-failure
|
bitwardenrs_restart_policy: on-failure
|
||||||
bitwardenrs_exposed_port: 80
|
bitwardenrs_exposed_port: 80
|
||||||
bitwardenrs_exposed_ip: 127.0.0.1
|
bitwardenrs_exposed_ip: 127.0.0.1
|
||||||
@ -75,7 +75,7 @@ bitwardenrs_authenticator_disable_time_drift: False
|
|||||||
|
|
||||||
# @var bitwardenrs_smtp_host: $ "_unset_"
|
# @var bitwardenrs_smtp_host: $ "_unset_"
|
||||||
bitwardenrs_smtp_from: "bitwardenrs@localhost"
|
bitwardenrs_smtp_from: "bitwardenrs@localhost"
|
||||||
bitwardenrs_smtp_from_name: "bitwarden_rs"
|
bitwardenrs_smtp_from_name: "bitwardenrs"
|
||||||
bitwardenrs_smtp_port: 587
|
bitwardenrs_smtp_port: 587
|
||||||
bitwardenrs_smtp_ssl: True
|
bitwardenrs_smtp_ssl: True
|
||||||
# @var bitwardenrs_smtp_username: $ "_unset_"
|
# @var bitwardenrs_smtp_username: $ "_unset_"
|
||||||
@ -97,7 +97,7 @@ bitwardenrs_db_ssl_rootcert: /etc/ssl/certs/ca-certificates.crt
|
|||||||
bitwardenrs_ldap_sync_enabled: False
|
bitwardenrs_ldap_sync_enabled: False
|
||||||
bitwardenrs_ldap_container_name: bitwardenrs_ldap
|
bitwardenrs_ldap_container_name: bitwardenrs_ldap
|
||||||
bitwardenrs_ldap_version: latest
|
bitwardenrs_ldap_version: latest
|
||||||
bitwardenrs_ldap_image: "xoxys/bitwardenrs_ldap:{{ bitwardenrs_ldap_version }}"
|
bitwardenrs_ldap_image: "xoxys.bitwardenrs_docker_ldap:{{ bitwardenrs_ldap_version }}"
|
||||||
bitwardenrs_ldap_restart_policy: on-failure
|
bitwardenrs_ldap_restart_policy: on-failure
|
||||||
# @var bitwardenrs_ldap_volumes_extra:example: >
|
# @var bitwardenrs_ldap_volumes_extra:example: >
|
||||||
# bitwardenrs_ldap_volumes_extra:
|
# bitwardenrs_ldap_volumes_extra:
|
||||||
|
@ -4,13 +4,13 @@ galaxy_info:
|
|||||||
# @meta author:value: [xoxys](https://gitea.rknet.org/xoxys)
|
# @meta author:value: [xoxys](https://gitea.rknet.org/xoxys)
|
||||||
author: xoxys <mail@geeklabor.de>
|
author: xoxys <mail@geeklabor.de>
|
||||||
# @meta description: >
|
# @meta description: >
|
||||||
# [![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.bitwarden_rs/status.svg)](https://drone.rknet.org/ansible/xoxys.bitwarden_rs)
|
# [![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.bitwardenrs_docker/status.svg)](https://drone.rknet.org/ansible/xoxys.bitwardenrs_docker)
|
||||||
# [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
|
# [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
|
||||||
#
|
#
|
||||||
# Role to setup a [Bitwarden RS](https://github.com/dani-garcia/bitwarden_rs) passsword safe.
|
# Role to setup a [Bitwarden RS](https://github.com/dani-garcia/bitwardenrs) passsword safe.
|
||||||
# Bitwarden_RS is a community Bitwarden API server implementation written in Rust. This Role
|
# Bitwarden_RS is a community Bitwarden API server implementation written in Rust. This Role
|
||||||
# use Docker to setup [Bitwarden](https://gitea.rknet.org/docker/bitwarden_rs) and a
|
# use Docker to setup [Bitwarden](https://gitea.rknet.org/docker/bitwardenrs) and a
|
||||||
# [Bitwarden LDAP](https://gitea.rknet.org/docker/bitwarden_rs_ldap) Sync Service (optional).
|
# [Bitwarden LDAP](https://gitea.rknet.org/docker/bitwardenrs_ldap) Sync Service (optional).
|
||||||
# @end
|
# @end
|
||||||
description: Role to setup Bitwarden passsword safe
|
description: Role to setup Bitwarden passsword safe
|
||||||
license: MIT
|
license: MIT
|
||||||
|
@ -30,4 +30,4 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: xoxys.postgres
|
- role: xoxys.postgres
|
||||||
- role: xoxys.bitwarden_rs
|
- role: xoxys.bitwardenrs_docker
|
||||||
|
@ -9,18 +9,18 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||||||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
||||||
|
|
||||||
|
|
||||||
def test_bitwarden_rs_running(host):
|
def test_bitwardenrs_running(host):
|
||||||
bitwarden_rs = host.docker("bitwardenrs")
|
bitwardenrs = host.docker("bitwardenrs")
|
||||||
|
|
||||||
assert bitwarden_rs.is_running
|
assert bitwardenrs.is_running
|
||||||
|
|
||||||
|
|
||||||
def test_bitwarden_rs_socket(host):
|
def test_bitwardenrs_socket(host):
|
||||||
# Verify the socket is listening for HTTP traffic
|
# Verify the socket is listening for HTTP traffic
|
||||||
assert host.socket("tcp://127.0.0.1:80").is_listening
|
assert host.socket("tcp://127.0.0.1:80").is_listening
|
||||||
|
|
||||||
|
|
||||||
def test_bitwarden_rs_conn_error(host):
|
def test_bitwardenrs_conn_error(host):
|
||||||
code = int(host.run("curl -s -w '%{http_code}' http://localhost/alive -o /dev/null").stdout)
|
code = int(host.run("curl -s -w '%{http_code}' http://localhost/alive -o /dev/null").stdout)
|
||||||
body = host.run("curl -sX GET http://localhost/").stdout
|
body = host.run("curl -sX GET http://localhost/").stdout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user