Skip to content

Commit 8c583ea

Browse files
authored
Update README for Playbook 2.0.0 (#242)
1 parent 79b24b1 commit 8c583ea

File tree

1 file changed

+51
-30
lines changed

1 file changed

+51
-30
lines changed

README.md

Lines changed: 51 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,49 @@
33

44
## Introduction
55

6-
This is an Ansible playbook for provisioning an instance of Islandora. This repository includes a Vagrantfile, so `vagrant up` will create a local virtual machine and run the playbook on it.
6+
This is an Ansible playbook for provisioning an instance of Islandora. This repository can be used with Vagrant, or for deploying to a remote server.
77

8-
This can also be used as an ansible playbook (playbook.yml) to provision a remote server. If doing so, be sure to change the passwords in `inventory/vagrant/group_vars/all/passwords.yml` (or override them with your own inventory), as well as ensure all ports except the Drupal port are behind a firewall.
8+
As of tag 2.0.0, deployment is done in two stages:
9+
* with `islandora_build_base_box=true` ('ISLANDORA_BUILD_BASE=true' in Vagrant), to install environment components that change infrequently, and
10+
* with `islandora_build_base_box=false` ('ISLANDORA_BUILD_BASE=false' [default] in Vagrant), to install and configure the Islandora software.
11+
12+
The base box can be stored, to save time on subsequent builds (e.g. for creating dev or testing environments).
13+
14+
For usage instructions, including Vagrant and remote server deployment, see [Islandora Playbook](https://islandora.github.io/documentation/installation/playbook) in the Islandora Documentation.
915

1016
For an alternative installation using Docker, please see [ISLE](https://islandora.github.io/documentation/installation/docker-introduction/).
1117

12-
## Running Vagrant on Macs
1318

14-
### No Virtualbox available for M1, M2 Macs
19+
## Use
1520

16-
The new architecture of the Apple silicon chips (M1, M2) is incompatible with VirtualBox,
17-
so the newest Macs cannot be used with the Vagrant method. However, they can still deploy
18-
the playbook to remote VMs, or use Docker (ISLE).
21+
Detailed installation and usage instructions can be found on the [official installation documentation for Islandora](https://islandora.github.io/documentation/installation/playbook/).
1922

20-
### macOS 12.0 Monterey VirtualBox Workaround
2123

22-
VirtualBox has not been updated to work fully with macOS Monterey as of October, 2021.
23-
A workaround exists, which is to run VirtualBox in non-headless mode.
24+
## Variables
2425

25-
In your Vagrantfile, add the line `v.gui = true` to the configuration section near the top:
26+
These Vagrant variables (in all caps) are read from the environment, so if you set them as Unix shell variables they will override the defaults defined in the Vagrantfile.
2627

27-
```
28-
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
29-
config.vm.provider "virtualbox" do |v|
30-
v.name = "Islandora 8 Ansible"
31-
v.gui = true
32-
end
33-
```
28+
### Build Base box
3429

35-
Discussion of this issue can be found on [this issue](https://github.com/hashicorp/vagrant/issues/12557
36-
) in Vagrant's GitHub project.
30+
If `ISLANDORA_BUILD_BASE` is `true`, then the playbook will download a standard Vagrant base box of the `ISLANDORA_DISTRO` and partly provision it, creating a virtual machine that can be saved as an islandora base box.
3731

38-
## Variables
32+
If `ISLANDORA_BUILD_BASE` is `false` (default), then the playbook will use an existing islandora base box and provision the islandora software.
33+
34+
This corresponds to the `islandora_build_base_box` Ansible variable.
3935

40-
### Base box
36+
### Islandora Distro
4137

42-
By default the Vagrantfile builds Islandora on a `ubuntu/focal64` (20.04 LTS) base box.
38+
`ISLANDORA_DISTRO` defaults to `ubuntu/focal64` (20.04 LTS), which is currently the only working distribution.
4339

40+
This corresponds to the `islandora_distro` Ansible variable.
4441

4542
### Install Profile
4643

47-
The Unix shell variable `ISLANDORA_INSTALL_PROFILE` can be one of:
44+
`ISLANDORA_INSTALL_PROFILE` can be one of:
4845

49-
* `demo`: Installs the demo based on the [install profile](https://github.com/Islandora-Devops/islandora_install_profile_demo) developed by Born Digital. This has a custom theme and more out-of-the-box customizations.
5046
* `starter`: Installs using [the `islandora/islandora-starter-site` project](https://github.com/Islandora/islandora-starter-site/) as a template, intended for spinning up sites for general usage.
5147
* `starter_dev`: Similar to `starter`, installs based on [the `islandora/islandora-starter-site` project](https://github.com/Islandora/islandora-starter-site/); however, performs a clone of the repository with its history, intended specifically for development of the starter site.
48+
* `demo`: Installs the demo based on the [install profile](https://github.com/Islandora-Devops/islandora_install_profile_demo) developed by Born Digital. This has a custom theme and more out-of-the-box customizations.
5249

5350
This corresponds to the `islandora_profile` Ansible variable.
5451

@@ -61,11 +58,7 @@ export ISLANDORA_VAGRANT_CPUS=4
6158
export ISLANDORA_VAGRANT_MEMORY=5040
6259
```
6360

64-
## Use
65-
66-
Detailed installation and usage instructions can be found on the [official installation documentation for Islandora](https://islandora.github.io/documentation/installation/playbook/).
67-
68-
## Connect
61+
## Connect (Vagrant)
6962

7063
You can connect to the machine via the browser at [http://localhost:8000](http://localhost:8000).
7164

@@ -139,6 +132,34 @@ The Playbook installs an instance of the [Matomo](https://matomo.org/) web analy
139132
* username: admin
140133
* password: islandora
141134

135+
136+
## Running Vagrant on Macs
137+
138+
### Virtualbox not available for M1, M2 Macs
139+
140+
The new architecture of the Apple silicon chips (M1, M2) is incompatible with VirtualBox,
141+
so the newest Macs cannot be used with the Vagrant method. However, they can still deploy
142+
the playbook to remote VMs, or use Docker (ISLE).
143+
144+
### macOS 12.0 Monterey VirtualBox Workaround
145+
146+
VirtualBox has not been updated to work fully with macOS Monterey as of October, 2021.
147+
A workaround exists, which is to run VirtualBox in non-headless mode.
148+
149+
In your Vagrantfile, add the line `v.gui = true` to the configuration section near the top:
150+
151+
```
152+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
153+
config.vm.provider "virtualbox" do |v|
154+
v.name = "Islandora 8 Ansible"
155+
v.gui = true
156+
end
157+
```
158+
159+
Discussion of this issue can be found on [this issue](https://github.com/hashicorp/vagrant/issues/12557
160+
) in Vagrant's GitHub project.
161+
162+
142163
## Roadmap
143164

144165
The playbook is in maintenance mode as new development is focused on [ISLE](https://islandora.github.io/documentation/installation/docker-compose/) for development and production.

0 commit comments

Comments
 (0)