Skip to content

Commit f54ce89

Browse files
committed
Update documentation to better comply with ansible-galaxy format
1 parent 5367829 commit f54ce89

File tree

3 files changed

+48
-153
lines changed

3 files changed

+48
-153
lines changed

README.md

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
Snipe-IT Installation with Ansible
22
----------------------------------
3-
This repository contains installation scripts for deploying [Snipe-IT](http://snipeitapp.com/) with [Ansible](http://www.ansible.com) on Ubuntu. Installation can be performed on production/development server or tested with [Vagrant](http://www.vagrantup.com).
3+
This repository contains [Ansible](http://www.ansible.com) Role for deploying [Snipe-IT](http://snipeitapp.com/) on Debian based systems.
44

5-
## Requirements
6-
7-
* Ubuntu 14.04
5+
* Quick Installation can be performed on production/development server with attached script.
6+
* Sample playbook is available for standalone installations.
7+
* [Vagrant](http://www.vagrantup.com) file is attached for quickly testing Snipe-IT on VM.
88

99
## Quick Installation
1010

11+
__Requirements:__
12+
13+
Ubuntu 12.04 and up. ( Testend on Ubuntu 14.04 )
14+
15+
__Installation:__
16+
1117
Connect to target Ubuntu machine and run:
1218

1319
```
@@ -24,7 +30,7 @@ Password: `bar`
2430
Installation will be performed using the default configuration values.
2531

2632

27-
__Default Configuration Values:__
33+
## Default Configuration Values:
2834

2935
| Variable Name | Default Value |
3036
|:-----------------------------|:-----------------:|
@@ -54,7 +60,7 @@ This Snipe-IT installation playbook can be executed directly on the target machi
5460
### Clone the repository
5561

5662
cd $HOME
57-
git clone https://github.com/GR360RY/snipeit-ansible.git snipeit
63+
git clone https://github.com/GR360RY/snipeit-ansible.git
5864

5965
### Modify the configuration
6066

@@ -69,44 +75,45 @@ Edit `snipeit.yml` and overwrite the default values:
6975

7076
vars:
7177

72-
snipeit_source: /var/www/another_folder
78+
snipeit_source: /opt/snipe-it
7379

74-
snipeit_dbname: my_db
75-
snipeit_dbuser: foo
76-
snipeit_dbuser_password: bar
80+
snipeit_dbname: snipeit
81+
snipeit_dbuser: snipeit
82+
snipeit_dbuser_password: secret
7783

78-
smtp_host: smtp.foo.com
84+
smtp_host: smtp.example.com
7985
smtp_port: 25
8086

8187
admin_first_name: Admin
8288
admin_last_name: Admin
83-
admin_email: john@foo.com
84-
admin_password: my_secret_password
89+
admin_email: foo@example.com
90+
admin_password: bar
8591

86-
disable_default_apache_site: False
92+
disable_default_apache_site: True
8793
run_mysql_on_all_interfaces: False
8894

89-
# If you want to import users from Active Directory to Snipe-IT, modify the below values.
95+
# If you want to import users from Active Directory to Snipe-IT, uncomment and modify the below values.
9096
# To import AD users, run /usr/local/bin/import_ad_users.py
9197

92-
ldap_uri: 'ldap://dc01.foo.com'
93-
ldap_admin: 'CN=Administrator,DC=foo,DC=com'
94-
ldap_passwd: 'your_secret_password'
95-
users_ou: 'OU=Users,DC=foo,DC=com'
96-
98+
#ldap_uri: 'ldap://dc01.foo.com'
99+
#ldap_admin: 'CN=Administrator,DC=foo,DC=com'
100+
#ldap_passwd: 'your_secret_password'
101+
#users_ou: 'OU=Users,DC=foo,DC=com'
97102

98103
roles:
99-
- snipeit
104+
- snipeit-ansible
100105

101106
```
107+
### Install Snipe-IT
108+
109+
sudo ansible-playbook -i hosts -c local snipeit.yml
110+
111+
102112
### Active Directory User Import
103113

104114
One major feature that is missing from Snipe-IT is Active Directory user import/synchronization. It is important to say that this feature is on the roadmap. But what if you are eager to use Snipe-IT in production and do not want to add each and every user manually? This repository will also deploy simple python script that will import AD users directly into the Snipe-IT database.
105115
Make sure to modify the last block of the vars section. To import AD users, run `/usr/local/bin/import_ad_users.py`
106116

107-
### Install Snipe-IT
108-
109-
sudo ansible-playbook -i hosts -c local snipeit.yml
110117

111118
## Testing Snipe-IT with Vagrant
112119

@@ -122,7 +129,7 @@ _Note:_ Currently working and tested on OS X only but should work just fine on L
122129

123130
```bash
124131
cd $HOME
125-
git clone https://github.com/GR360RY/snipeit-ansible.git snipeit-ansible
132+
git clone https://github.com/GR360RY/snipeit-ansible.git
126133
cd $HOME/snipeit-ansible
127134
vagrant up
128135
```

meta/main.yml

Lines changed: 10 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -1,124 +1,12 @@
11
---
22
galaxy_info:
3-
author: your name
4-
description:
5-
company: your company (optional)
6-
# Some suggested licenses:
7-
# - BSD (default)
8-
# - MIT
9-
# - GPLv2
10-
# - GPLv3
11-
# - Apache
12-
# - CC-BY
13-
license: license (GPLv2, CC-BY, etc)
14-
min_ansible_version: 1.2
15-
#
16-
# Below are all platforms currently available. Just uncomment
17-
# the ones that apply to your role. If you don't see your
18-
# platform on this list, let us know and we'll get it added!
19-
#
20-
#platforms:
21-
#- name: EL
22-
# versions:
23-
# - all
24-
# - 5
25-
# - 6
26-
# - 7
27-
#- name: GenericUNIX
28-
# versions:
29-
# - all
30-
# - any
31-
#- name: Fedora
32-
# versions:
33-
# - all
34-
# - 16
35-
# - 17
36-
# - 18
37-
# - 19
38-
# - 20
39-
#- name: opensuse
40-
# versions:
41-
# - all
42-
# - 12.1
43-
# - 12.2
44-
# - 12.3
45-
# - 13.1
46-
# - 13.2
47-
#- name: Amazon
48-
# versions:
49-
# - all
50-
# - 2013.03
51-
# - 2013.09
52-
#- name: GenericBSD
53-
# versions:
54-
# - all
55-
# - any
56-
#- name: FreeBSD
57-
# versions:
58-
# - all
59-
# - 8.0
60-
# - 8.1
61-
# - 8.2
62-
# - 8.3
63-
# - 8.4
64-
# - 9.0
65-
# - 9.1
66-
# - 9.1
67-
# - 9.2
68-
#- name: Ubuntu
69-
# versions:
70-
# - all
71-
# - lucid
72-
# - maverick
73-
# - natty
74-
# - oneiric
75-
# - precise
76-
# - quantal
77-
# - raring
78-
# - saucy
79-
# - trusty
80-
#- name: SLES
81-
# versions:
82-
# - all
83-
# - 10SP3
84-
# - 10SP4
85-
# - 11
86-
# - 11SP1
87-
# - 11SP2
88-
# - 11SP3
89-
#- name: GenericLinux
90-
# versions:
91-
# - all
92-
# - any
93-
#- name: Debian
94-
# versions:
95-
# - all
96-
# - etch
97-
# - lenny
98-
# - squeeze
99-
# - wheezy
100-
#
101-
# Below are all categories currently available. Just as with
102-
# the platforms above, uncomment those that apply to your role.
103-
#
104-
#categories:
105-
#- cloud
106-
#- cloud:ec2
107-
#- cloud:gce
108-
#- cloud:rax
109-
#- clustering
110-
#- database
111-
#- database:nosql
112-
#- database:sql
113-
#- development
114-
#- monitoring
115-
#- networking
116-
#- packaging
117-
#- system
118-
#- web
119-
dependencies: []
120-
# List your role dependencies here, one per line. Only
121-
# dependencies available via galaxy should be listed here.
122-
# Be sure to remove the '[]' above if you add dependencies
123-
# to this list.
124-
3+
author: Gregory Shulov
4+
description: A role for installing Snipe-IT on Debian Based Distros
5+
platforms:
6+
- name: Ubuntu
7+
versions:
8+
- trusty
9+
categories:
10+
- system
11+
min_ansible_version: 1.6
12+
dependencies: []

snipeit.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
admin_email: [email protected]
1919
admin_password: bar
2020

21-
disable_default_apache_site: False
21+
disable_default_apache_site: True
2222
run_mysql_on_all_interfaces: False
2323

24-
# If you want to import users from Active Directory to Snipe-IT, modify the below values.
24+
# If you want to import users from Active Directory to Snipe-IT, uncomment and modify the below values.
2525
# To import AD users, run /usr/local/bin/import_ad_users.py
2626

27-
ldap_uri: 'ldap://dc01.foo.com'
28-
ldap_admin: 'CN=Administrator,DC=foo,DC=com'
29-
ldap_passwd: 'your_secret_password'
30-
users_ou: 'OU=Users,DC=foo,DC=com'
27+
#ldap_uri: 'ldap://dc01.foo.com'
28+
#ldap_admin: 'CN=Administrator,DC=foo,DC=com'
29+
#ldap_passwd: 'your_secret_password'
30+
#users_ou: 'OU=Users,DC=foo,DC=com'
3131

3232
roles:
3333
- snipeit-ansible

0 commit comments

Comments
 (0)