sperka / ansible-role-archiva

Ansible role for Apache Archiva
MIT License
3 stars 1 forks source link
ansible ansible-galaxy ansible-role archiva

Ansible Role: Apache Archiva

Build Status

Installs Apache Archiva.

Requirements

This role supports only Ubuntu Linux. Feel free to extend it to other platforms.

Archiva system requirements:

Role Variables

Default variables:

Playbook variables

For use the proper user parameters, please see Apache Archiva Redback REST API and Apache Archiva Web REST support API.

Dependencies

gantsign.java

Variables used by role dependency:

    # For more info see: https://galaxy.ansible.com/gantsign/java/
    java_version: '8u112'
    java_license_declaration: ...

Example Playbook

An example playbook for the role that automatically creates the admin user and a deploy user with the proper roles assigned.

# Example playbook for ansible-role-archiva

- hosts: all
  become: yes
  roles:
    - role: ansible-role-archiva
      archiva_admin:
        username: admin
        password: adminPass123
        email: admin@archiva-test.org
        fullName: Admin
        locked: false
        passwordChangeRequired: false
        permanent: false
        readOnly: false
        validated: true
      archiva_repositories:
      - id: myRepo
        name: myRepo
        layout: default
        indexDirectory: ./myRepo/.indexer
        description: null
        location: ./repositories/myRepo
        snapshots: false
        releases: true
        blockRedeployments: true
        cronExpression: '0 0 * * * ?'
        stagingRepository: null
        scanned: true
        daysOlder: 100
        retentionCount: 2
        deleteReleasedSnapshots: false
        stageRepoNeeded: false
        resetStats: false
        skipPackedIndexCreation: false
      archiva_users:
      - username: deploy
        password: deployPass123
        email: deploy@archiva-test.org
        fullName: Deploy User
        locked: false
        passwordChangeRequired: false
        permanent: false
        readOnly: false
        validated: true
        assignedRoles:
          - "Global Repository Manager"
          - "Global Repository Observer"
          - "Registered User"
          - "Repository Manager - internal"
          - "Repository Observer - internal"
          - "Repository Observer - snapshots"
          - "Repository Manager - snapshots"

License

MIT

Author Information

https://github.com/sperka