Giter Club home page Giter Club logo

ans-opendj's Introduction

Role Name

Ansible role to install OpenDJ LDAP v3 server.

This role downloads and installs the latest nightly build of OpenDJ. If you prefer to install a stable release, or if for some reason the nightly build is not available, you must download a copy of the OpenDJ zip file and update the variable opendj_url in defaults/main.yml to a location where the guest can access the zip file. Alternatively, you can copy the OpenDJ zip file to the download_dir location.

Requirements

Requires Java SDK (1.7 or later) installed on the target.

This role requires ansible 1.4 or higher

Role Variables

Default Variables (see defaults/main.yml for a more complete list)

  • install_root (/opt). Where OpenDJ will be installed
  • opendj_url. A URL where the OpenDJ can be downloaded from. Defaults to the ForgeRock Jenkins server.
  • download_dir (/var/tmp/) . Where the OpenDJ binary is downloaded to
  • opendj_ldap_port (389) LDAP port to listen on
  • opendj_ldaps_port (636). LDAP SSL port to listen on
  • opendj_admin_port (4444). Admin port
  • opendj_jmx_port: (1689). JMX monitoring port
  • opendj_basedn (dc=example,dc=com). The default base DN for the directory
  • opendj_service_name (opendj). The name of the service for starting/stopping OpenDJ

Example

Configure two instances of OpenDJ on the same server (different ports)

- hosts: ldap
  roles:
      - { role: opendj, install_root: "/opt/a" }
      - { role: opendj, install_root: "/opt/b", opendj_admin_port: 1444, opendj_ldap_port: 2389,
          opendj_ldaps_port: 2636 , opendj_jmx_port: 2689, opendj_service_name: "opendj2" }

Dependencies

None

License

MIT

Author Information

Warren Strange.

ans-opendj's People

Contributors

wstrange avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ans-opendj's Issues

install fails

I haven't used galaxy in a while, so i may be missing something simple.

without sudo
% ansible-galaxy install warren.strange.opendj

  • downloading role 'opendj', owned by warren.strange
  • downloading role from https://github.com/wstrange/ans-opendj/archive/master.tar.gz
  • extracting warren.strange.opendj to /etc/ansible/roles/ANSIBLE_META_HOME/warren.strange.opendj
  • error: you do not have permission to modify files in /etc/ansible/roles/ANSIBLE_META_HOME/warren.strange.opendj
    Traceback (most recent call last):
    File "/Users/kbroughton/vcp/git/mentat/ansible/bin/ansible-galaxy", line 890, in
    main()
    File "/Users/kbroughton/vcp/git/mentat/ansible/bin/ansible-galaxy", line 884, in main
    fn(args, options, parser)
    File "/Users/kbroughton/vcp/git/mentat/ansible/bin/ansible-galaxy", line 794, in execute_install
    os.unlink(tmp_file)
    OSError: [Errno 2] No such file or directory: '/var/folders/t2/h22337c12hn279xwd4s9fk7s8_088c/T/tmpiFO_P_'

With sudo

% sudo !!
sudo ansible-galaxy install warren.strange.opendj
Traceback (most recent call last):
File "/Users/kbroughton/vcp/git/mentat/ansible/bin/ansible-galaxy", line 42, in
import ansible.constants as C
ImportError: No module named ansible.constants

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.