You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-25Lines changed: 32 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,19 @@
1
1
Snipe-IT Installation with Ansible
2
2
----------------------------------
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.
4
4
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.
8
8
9
9
## Quick Installation
10
10
11
+
__Requirements:__
12
+
13
+
Ubuntu 12.04 and up. ( Testend on Ubuntu 14.04 )
14
+
15
+
__Installation:__
16
+
11
17
Connect to target Ubuntu machine and run:
12
18
13
19
```
@@ -24,7 +30,7 @@ Password: `bar`
24
30
Installation will be performed using the default configuration values.
@@ -69,44 +75,45 @@ Edit `snipeit.yml` and overwrite the default values:
69
75
70
76
vars:
71
77
72
-
snipeit_source: /var/www/another_folder
78
+
snipeit_source: /opt/snipe-it
73
79
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
77
83
78
-
smtp_host: smtp.foo.com
84
+
smtp_host: smtp.example.com
79
85
smtp_port: 25
80
86
81
87
admin_first_name: Admin
82
88
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
85
91
86
-
disable_default_apache_site: False
92
+
disable_default_apache_site: True
87
93
run_mysql_on_all_interfaces: False
88
94
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.
90
96
# To import AD users, run /usr/local/bin/import_ad_users.py
91
97
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'
97
102
98
103
roles:
99
-
- snipeit
104
+
- snipeit-ansible
100
105
101
106
```
107
+
### Install Snipe-IT
108
+
109
+
sudo ansible-playbook -i hosts -c local snipeit.yml
110
+
111
+
102
112
### Active Directory User Import
103
113
104
114
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.
105
115
Make sure to modify the last block of the vars section. To import AD users, run `/usr/local/bin/import_ad_users.py`
106
116
107
-
### Install Snipe-IT
108
-
109
-
sudo ansible-playbook -i hosts -c local snipeit.yml
110
117
111
118
## Testing Snipe-IT with Vagrant
112
119
@@ -122,7 +129,7 @@ _Note:_ Currently working and tested on OS X only but should work just fine on L
0 commit comments