add remote host description
This commit is contained in:
parent
d2a6069463
commit
297c423b17
@ -22,7 +22,7 @@ Commit changed files in the customers repository.
|
|||||||
|
|
||||||
- `cd deployer`
|
- `cd deployer`
|
||||||
- `composer update`
|
- `composer update`
|
||||||
- apply changes in the `inventory.yml`
|
- apply changes in the `inventory.yml` ([setting up a remote host](remote.md))
|
||||||
- commit changes
|
- commit changes
|
||||||
|
|
||||||
## Project
|
## Project
|
||||||
|
@ -29,3 +29,9 @@ hosts:
|
|||||||
composer_options: --verbose --prefer-dist --no-progress --no-interaction # without no-dev option
|
composer_options: --verbose --prefer-dist --no-progress --no-interaction # without no-dev option
|
||||||
labels:
|
labels:
|
||||||
role: development
|
role: development
|
||||||
|
|
||||||
|
remote:
|
||||||
|
<<: *base
|
||||||
|
local: false
|
||||||
|
hostname: mydomain.com
|
||||||
|
config_file: ~/.ssh/config
|
||||||
|
15
remote.md
Normal file
15
remote.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Creating remote host configuration on Deployer server
|
||||||
|
|
||||||
|
Run `ssh-keygen` to create a key pair (naming example: `mydomain.com`) and transfer public key to remote host with `ssh-copy-id`.
|
||||||
|
|
||||||
|
Create `~/.ssh/config` file to store connection parameters:
|
||||||
|
|
||||||
|
```
|
||||||
|
Host mydomain.com
|
||||||
|
HostName virtual.server.com
|
||||||
|
User mydfhtsy
|
||||||
|
Port 22
|
||||||
|
IdentityFile ~/.ssh/mydomain.com
|
||||||
|
```
|
||||||
|
|
||||||
|
Setup the non-local host in the `inventory.yml` file.
|
Loading…
x
Reference in New Issue
Block a user