-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added additional documentation #1
base: master
Are you sure you want to change the base?
Changes from all commits
893bdca
4fcfbd1
19958a2
494c71a
a0df87e
2c85353
c0f1853
e6c9b08
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Post-install | ||
------------ | ||
|
||
**Important installer messages** | ||
|
||
At the end of the installation process, the installer will display messages like: | ||
``` | ||
==> valkyrie: TASK: [getvalkyrie.valkyrie | Output the deploy key] ************************** | ||
==> valkyrie: ok: [localhost] => { | ||
==> valkyrie: "var": { | ||
==> valkyrie: "ssh_public_key_output.stdout_lines": [ | ||
==> valkyrie: "/////////////////////////////////////////////////////////////////////////////", | ||
==> valkyrie: " Add the following deploy key to your project on Github:", | ||
==> valkyrie: "=============================================================================", | ||
==> valkyrie: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCosL1qmesmA55S2ZB3fEdsLQSElHOARcXpu7ZeT5vX+kpKb6OQQ/6zQ9I5nx1GaZORkwlKy4qNxhmUiy7u/aIiPALQlL2m9y7brqFxewPMCcX5vhV84rW/qxieJzx3nSC0s99ui+vnYhylbwBapJmfpUcuCMJzyP+JlusRYTLyk/uIrDtewnk2PgAtFYF/gUyK6It/RIbwdtawXrW/MQuFuYPpVYnvG+bbqmx+t7HBISWBbm/DK2guKhXzkUhdD24sdPp9tjUfLfsWYB3Plh5mhOM8I4cTwjVOxGwVfwC+KiEAxlRbSihsqUaRdIr7AXfZ4pG/b6MelwlcX3W61tvz Valkyrie deploy key", | ||
==> valkyrie: "=============================================================================", | ||
==> valkyrie: "/////////////////////////////////////////////////////////////////////////////" | ||
==> valkyrie: ] | ||
==> valkyrie: } | ||
==> valkyrie: } | ||
==> valkyrie: | ||
==> valkyrie: TASK: [getvalkyrie.valkyrie | Output the login link] ************************** | ||
==> valkyrie: ok: [localhost] => { | ||
==> valkyrie: "var": { | ||
==> valkyrie: "aegir_login_link_output.stdout_lines": [ | ||
==> valkyrie: "/////////////////////////////////////////////////////////////////////////////", | ||
==> valkyrie: " You can access the front-end of your Aegir install at:", | ||
==> valkyrie: "=============================================================================", | ||
==> valkyrie: "http://valkyrie.local/user/reset/1/1429111863/uAvC9VJx-l2CqhaufWg8ElCSFWzfdTiUTxJOQJ-pbz4/login", | ||
==> valkyrie: "=============================================================================", | ||
==> valkyrie: "/////////////////////////////////////////////////////////////////////////////" | ||
==> valkyrie: ] | ||
==> valkyrie: } | ||
==> valkyrie: } | ||
``` | ||
|
||
* Use the login link as a one-time access to the now deployed aegir frontend, and reset the admin password immediate. Don't forget to tick the check boxes for all the roles you would want the admin user to be able to play on the aegir server. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resetting the admin password isn't required. The password is random (and thus secure) at this point, and the session opened by clicking on the one-time password link will continue to grant access. If the session times-out, you need only run Setting roles isn't required either, since the user is UID1. |
||
* Copy the displayed deploy ssh key, and add it to your project on github. This will allow you to publish to the project from valkyrie. | ||
|
||
### Looking Around the system | ||
|
||
**The directory in which vagrant commands are executed is significant** | ||
* The default location for vagrant base boxes is ~/.vagrant/machine, but valkyrie does not use that | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is not the case, nor does valkyrie change Vagrant's default behaviour. |
||
* The base directory for valkyrie vagrant vm is the directory in which you invoked the command `drush vmnew valkyrie` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. besides the typo here, this is also incorrect. the 'base directory' is the directory created by this command; so |
||
* To see all vagrant instances for your user account, from anywhere type `vagrant global-status` .. the display of this command is cached and might show recently deleted VMs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. everything below here is standard Vagrant functionality. I don't think there's any reason to describe it in detail here. |
||
* From anywhere you can run vagrant commands against any vm, by postfixing the id displayed by vagrant global-status. For example: | ||
``` | ||
vagrant destroy vmid | ||
vagrant ssh vmid | ||
etc | ||
``` | ||
* From a given install base, you can issue vagrant commands without specifying a vm id, and the commands will be run against the vm defined in the Vagrantfile within that directory | ||
* You can further customize the vm, by editing the Vagrant file | ||
|
||
**Working in the VM** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The purpose of Valkyrie is largely to remove the need to SSH into the VM. That said, What is perhaps interesting is that you can access the VM via Drush, using the generated aliases. |
||
* Logon to the VM, by typing 'vagrant ssh vmid' | ||
* This will log you into the vm's bash shell as user 'vagrant' | ||
* To become root, just type `sudo -s`, or preferably prepend sudo only when you need to run privileged commands | ||
* To see the nfs shares the vm is mounting from the host `df -h -t nfs` | ||
* /var/aegir/platforms is mounted off the host, and you can develop your platform code in that nfs-shared directory on the host .. perhaps define your IDE project space there. Each platform is basically a drupal install tree, which could also be created off makefiles, either from the host or the vm. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything below this point should probably go in a separate 'Troubleshooting' page.