Skip to content

Commit 149d3fc

Browse files
committed
initial
0 parents  commit 149d3fc

File tree

8 files changed

+113
-0
lines changed

8 files changed

+113
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
openbsd-rubywarden
2+
=========
3+
4+
Role to setup a [rubywarden](https://github.com/jcs/rubywarden] instance on OpenBSD.
5+
6+
Requirements
7+
------------
8+
9+
- OpenBSD
10+
11+
Role Variables
12+
--------------
13+
14+
| Variable | Default | Description |
15+
|--------- | ------- | ----------- |
16+
| rw_port | 4567 | The port rubywarden should listen on. |
17+
| rw_user | _rubywarden | The user that will be added to the system in order to run rubywarden. |
18+
| rw_home | /var/rubywarden | Home directory for rw_user. |
19+
| rw_group | _rubywarden | The group that will be added to the system in order to run rubywarden. |
20+
| rw_signups | false | Tells rubywarden to allow signups. Requires a service restart to change. |
21+
| rw_commit | master | Specific commit to be used during the checkout process. |
22+
23+
Example Playbook
24+
----------------
25+
26+
- hosts: rw_server
27+
roles:
28+
- { role: qbit.rubywarden }
29+
30+
License
31+
-------
32+
33+
```
34+
/*
35+
* Copyright (c) 2018 Aaron Bieber <[email protected]>
36+
*
37+
* Permission to use, copy, modify, and distribute this software for any
38+
* purpose with or without fee is hereby granted, provided that the above
39+
* copyright notice and this permission notice appear in all copies.
40+
*
41+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
42+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
43+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
44+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
45+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
46+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
47+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
48+
*/
49+
```

defaults/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# defaults file for openbsd-rubywarden
3+
4+
rw_port: 4567
5+
rw_user: _rubywarden
6+
rw_group: _rubywarden
7+
rw_signups: False
8+
rw_commit: master

handlers/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# handlers file for openbsd-rubywarden

meta/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
galaxy_info:
2+
role_name: rubywarden
3+
author: Aaron Bieber <[email protected]>
4+
description: OpenBSD rubywarden instance
5+
6+
license: BSD
7+
8+
min_ansible_version: 2.0
9+
10+
platforms:
11+
- name: OpenBSD
12+
versions:
13+
- 6.1
14+
15+
galaxy_tags: ["OpenBSD", "rubywarden", "bitwarden"]
16+
17+
dependencies: []

tasks/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
3+
- name: Install dependencies
4+
package:
5+
name: "{{ item }}"
6+
state: installed
7+
loop:
8+
- git
9+
- ruby24-bundler
10+
- sqlite3
11+
12+
- name: add rubywarden group
13+
group:
14+
name: "{{ rw_group }}"
15+
state: present
16+
17+
- name: add rubywarden user
18+
user:
19+
name: "{{ rw_user }}"
20+
state: present
21+
group: "{{ rw_group }}"
22+
append: yes
23+
24+
- name: get rubywarden code
25+
git:
26+
repo: "https://github.com/jcs/rubywarden.git"
27+
dest: "{{ rw_home }}"
28+
version: "{{ rw_commit }}"

tests/inventory

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
localhost
2+

tests/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- hosts: localhost
3+
remote_user: root
4+
roles:
5+
- openbsd-rubywarden

vars/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# vars file for openbsd-rubywarden

0 commit comments

Comments
 (0)