This is a BOSH Release to deploy Apache Archiva.
Works! Minor configuration capabilities, as most configuration seems to be in the user interface.
git clone https://github.com/a2geek/apache-archiva-bosh-release.git
cd apache-archiva-bosh-release
bosh -d archiva deploy manifest.yml
Operations File | Description |
---|---|
operations/set-base-url.yml |
Used when Archiva is behind something like a HAProxy. If the URL or port does not match, Archiva assumes this is an attack and does not respond. |
operations/set-disk-size.yml |
Used to set a different disk size from the arbitratily chosen size of 10GiB. |
Structured variables will be similar to this:
archiva:
disk_size: ...
base_url: http(s)://...
Note that post deployment, the guest
user needs to be enabled as a repository observer. Otherwise Archiva will require authentication.
To do this, log into Archiva > Manage (Users) > Click the edit button for guest
> Click "Edit Roles" > Check Repository Observer > Click Update button.
Just a sample; search if you need more details!
$ cat ~/.m2/settings.xml
<settings>
<mirrors>
<mirror>
<id>archiva.default</id>
<url>http://<archiva-server>/repository/internal/</url>
<mirrorOf>external:*</mirrorOf>
</mirror>
</mirrors>
</settings>
For those used to make
the delete/deploy sequences are just:
make rmdev dev
Otherwise, the usual mechanisms:
cd apache-archiva-bosh-release
bosh create-release --force
bosh upload-release
bosh -d archiva deploy manifest.yml -o operations/use-latest-dev.yml