dockpack / artifactory Goto Github PK
View Code? Open in Web Editor NEWAnsible role to install Artifactory, the Maven repository manager by JFrog.
License: MIT License
Ansible role to install Artifactory, the Maven repository manager by JFrog.
License: MIT License
In the file ~/tasks/install.yml the 'create user to run artifactory' (line 17) role is defined by:
user: name={{artifactory_username}} home=/opt/artifactory/ shell=/bin/false system=true
This creates a problem in starting via service or /etc/init.d/artifactory.
A solution was changing this line to:
user: name={{artifactory_username}} home=/opt/artifactory/ shell=/bin/bash system=true
hope this helps
molecule failed to run because of incorrect dependencies in requirements.yml
$ molecule --version molecule, version 1.25.1
$ ansible --version ansible 2.7.4
$ molecule test
--> Destroying instances...
--> Downloading dependencies with 'galaxy'...
- downloading role 'base_java8', owned by bbaassssiiee
- downloading role from https://github.com/bbaassssiiee/base_java8/archive/v0.2.5.tar.gz
- extracting bbaassssiiee.base_java8 to /Users/Evgenii/git/dev/artifactory/.molecule/roles/bbaassssiiee.base_java8
- bbaassssiiee.base_java8 (v0.2.5) was installed successfully
- downloading role 'base_postgres', owned by bbaassssiiee
- downloading role from https://github.com/bbaassssiiee/base_postgres/archive/v0.1.1.tar.gz
- extracting bbaassssiiee.base_postgres to /Users/Evgenii/git/dev/artifactory/.molecule/roles/bbaassssiiee.base_postgres
- bbaassssiiee.base_postgres (v0.1.1) was installed successfully
--> Checking playbook's syntax...
ERROR! the role 'dockpack.base_java8' was not found in /Users/Evgenii/git/dev/artifactory/roles:/Users/Evgenii/git/dev/artifactory/.molecule/.molecule/roles:/Users/Evgenii/git/dev/artifactory/.molecule/roles:/Users/Evgenii/git/dev/artifactory:/Users/Evgenii/git/dev:/Users/Evgenii/git/dev:/Users/Evgenii/git/dev/artifactory
The error appears to have been in '/Users/Evgenii/git/dev/artifactory/meta/main.yml': line 25, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
dependencies:
- dockpack.base_java8
^ here
TASK [bbaassssiiee.artifactory : yum install prerequesites] ********************
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via
squash_actions is deprecated. Instead of using a loop to supply multiple items
and specifying `name: {{ item }}`, please use `name: [u'openssl', u'unzip']`
and remove the loop. This feature will be removed in version 2.11. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
$ molecule --version molecule, version 1.25.1
$ ansible --version ansible 2.7.4
--> Idempotence test in progress (can take a few minutes)...
--> Starting Ansible Run...
ERROR: Idempotence test failed because of the following tasks:
ERROR: * [vm] => bbaassssiiee.base_postgres : set listen on on ipv4 addresses
* [vm] => bbaassssiiee.base_postgres : set replication setting: wal_level
* [vm] => artifactory : create configuration file
* [vm] => artifactory : install artifactory as a service
* [vm] => artifactory : ensure storage properties configuration is present with derby driver
I updated the version variable and the role did not redownload or upgrade the application.
Is settings_xml.j2 used for anything or should it be removed...
Thanks
What could go wrong ?
Trying the default user/password
artifactory
password
It seems that it fails to install the mysql jdbc drivers on Debian 8.1
TASK: [bbaassssiiee.artifactory | seboolean allow_user_mysql_connect] *********
failed: [repo.do.citrite.net] => {"failed": true}
msg: This module requires libselinux-python support
FATAL: all hosts have already failed -- aborting
In fact I was not even interested in using mysql for artifactory as postgresql seems like a much better pick, still the default settings failed to install.
Provide one role-specific variable to specify either mysql or postgresql. That will allow users to recognize the purpose of the var and avoid name collision in global namespace.
Is there some way to configure this without having to deal with welcome screen - i.e., setting up repositories, etc., automatically?
Would prefer configuration as part of the code.
it seems that the logic for detecting if java is already installed failed as I had previously installed Oracle Java 8 on the target host and it seems that it decided to install openjdk7 instead, which was not quite desired.
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.