gr360ry / snipeit-ansible Goto Github PK
View Code? Open in Web Editor NEWSnipe-IT Deployment Automation with Ansible and Vagrant
License: MIT License
Snipe-IT Deployment Automation with Ansible and Vagrant
License: MIT License
*********** I receive the following error ****************
TASK: [snipeit-ansible | Install ldapdict python library] *********************
failed: [127.0.0.1] => {"cmd": "/usr/bin/pip install ldapdict", "failed": true}
msg: stdout: Downloading/unpacking ldapdict
Could not find any downloads that satisfy the requirement ldapdict
Cleaning up...
No distributions at all found for ldapdict
Storing debug log for failure in /root/.pip/pip.log
FATAL: all hosts have already failed -- aborting
For the ldapict portion of the installer it continues to fail as it is pointing to https://pypi.python.org and not http://
Hi!
I´ve installed in a fresh installation ubuntu server, and in the last step appears this error:
TASK: [snipeit-ansible | Create snipeit database] *****************************
failed: [127.0.0.1] => {"failed": true}
msg: unable to connect, check login_user and login_password are correct, or alternatively check ~/.my.cnf contains credentials
FATAL: all hosts have already failed -- aborting
Regards
This repository does not contain a License information.
According to GitHub's Licensing Help:
... without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work.
Currently I am working on a playbook for deploying Snipe-IT for our company and I'd like to reuse part of your work. Because of the missing license information, I want to ask if I am allowed to reuse parts of your code.
Installer fails at this point, upon looking at the python.org website ldapdict does not exist under simple anymore.
Hello
Level: Noob
I have been trying to set up snipe it using gr360ry's script and have not been able to get past this error/failure:
TASK: [snipeit | Create snipeit database] *************************************
failed: [localhost] => {"failed": true}
msg: unable to connect, check login_user and login_password are correct, or alternatively check ~/.my.cnf contains credentials
FATAL: all hosts have already failed -- aborting
I thought all I needed was to run this script and then go to another machine, point it to this snipeit install. Obviously there is something I am not doing right. After running the script a few too many times, I thought I ask for help.
Thx
~kenn
I was able to install the script without any issues, but i am having this error "Server Error: 500 (Internal Server Error)" upon accessing it, and i cant see any logs on apache.
TASK: [snipeit-ansible | Clone Snipe-IT repo] *********************************
changed: [127.0.0.1]
TASK: [snipeit-ansible | Update production bootstrap enviroment] **************
failed: [127.0.0.1] => {"failed": true}
msg: Destination directory /opt/snipe-it/bootstrap does not exist
First off, thanks for putting this together, it really simplified my install. This is just a suggestion.
When I tried to upgrade from 1.2.5 to 1.2.6, I had a weird issue. I was unable to reproduce it, but I have a sneaking suspicion that it may have had something to do with grabbing development versions.
I suggest changing the task in main.yml from:
- name: Clone Snipe-IT repo
git: repo=https://github.com/snipe/snipe-it.git dest={{ snipeit_source }}
to:
- name: Clone Snipe-IT repo
git: repo=https://github.com/snipe/snipe-it.git version=master dest={{ snipeit_source }}
Or perhaps make it a variable so that people can configure which version they want?
Anyway, thanks for all the hard work that went into this. It is appreciated.
Alright, finally had a change to play around with your AD user import script. I am running this manually for the time being but I'm running into an error.
Traceback (most recent call last):
File "./import_ad_users.py", line 67, in <module>
get_ldap_users()
File "./import_ad_users.py", line 41, in get_ldap_users
email = user[ldap_attributes['email']][0]
File "/usr/local/lib/python2.7/dist-packages/ldapdict/ldapdict.py", line 405, in __getitem__
raise KeyError(key)
KeyError: 'mail'
I have modified the LDAP settings and credentials to what I believe are the correct values for my environment. Do you have any troubleshooting ideas? Are there some python requirements that I might be missing? (python noob here)
mysql> use snipeit;
Database changed
mysql> show tables;
Empty set (0.00 sec)
Hi!
I´ve a problem finishing the installation with the script.
there is the problem.
TASK: [snipeit-ansible | Clone Snipe-IT repo] *********************************
failed: [127.0.0.1] => {"failed": true}
msg: Local modifications exist in repository (force=no).
FATAL: all hosts have already failed -- aborting
The machine is a fresh installation Ubuntu x64, 14.01 LTS with LAMP server running in a viertual infrastructure.
Thanks.
Installation failed with the next error:
TASK: [snipeit-ansible | Clone Snipe-IT repo] *********************************
failed: [127.0.0.1] => {"failed": true}
msg: Local modifications exist in repository (force=no).
FATAL: all hosts have already failed -- aborting
Ansible git module behaviour change since version 1.9. force=no became the default option.
/opt/snipe-it/app/private_uploads also needs to be writable by www-data
I tried both the script and manual installation and still got the same error below, mysql is running and credentials are working as tested.
Error during installation:
TASK: [snipeit-ansible | Create snipeit database] *****************************
failed: [127.0.0.1] => {"failed": true}
msg: unable to connect, check login credentials (login_user, and login_password, which can be defined in ~/.my.cnf), check that mysql socket exists and mysql server is running
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/snipeit.retry
127.0.0.1 : ok=12 changed=7 unreachable=0 failed=1
did something change in composer? it is now stuck for over 1hr+ at this step, when running it in the vagrant environment.
In snipeit-ansible/tasks/main.yml
name: Install composer locally
shell: curl -sS https://getcomposer.org/installer | php chdir={{ snipeit_source }} creates={{ snipeit_source }}/composer.phar
The command "curl -sS https://getcomposer.org/installer" does not get the installer but the certificates info instead.
"wget --no-check-certificate https://getcomposer.org/installer" on the other hand works and gets the installer.
Mabe use wget --no-check-certificate as also used in the beginning of manual in https://github.com/GR360RY/snipeit-ansible ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.