Skip to content

Commit a806757

Browse files
committed
Include databases.php
1 parent 0c7c0b1 commit a806757

File tree

4 files changed

+23
-19
lines changed

4 files changed

+23
-19
lines changed

docs/recipe/provision.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,29 @@
99

1010

1111
* Requires
12+
* [databases](/docs/recipe/provision/databases.md)
1213
* [nodejs](/docs/recipe/provision/nodejs.md)
1314
* [php](/docs/recipe/provision/php.md)
1415
* [website](/docs/recipe/provision/website.md)
1516

1617
## Configuration
1718
### lsb_release
18-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L15)
19+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L16)
1920

2021
Name of lsb_release like: focal, bionic, etc.
2122
As only Ubuntu 20.04 LTS is supported for provision should be the `focal`.
2223

2324

2425

2526
### sudo_password
26-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L132)
27+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L133)
2728

2829

2930

3031

3132

3233
### ssh_copy_id
33-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L142)
34+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L143)
3435

3536
Specify which key to copy to server.
3637
Set to `false` to disable copy of key.
@@ -44,7 +45,7 @@ Set to `false` to disable copy of key.
4445
## Tasks
4546

4647
### provision
47-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L20)
48+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L21)
4849

4950
Provision the server.
5051

@@ -67,63 +68,63 @@ This task is group task which contains next tasks:
6768

6869

6970
### provision:check
70-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L36)
71+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L37)
7172

7273
Check pre-required state.
7374

7475

7576

7677

7778
### provision:update
78-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L55)
79+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L56)
7980

8081
Add repositories and update.
8182

8283

8384

8485

8586
### provision:upgrade
86-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L77)
87+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L78)
8788

8889
Upgrade all packages.
8990

9091

9192

9293

9394
### provision:install
94-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L84)
95+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L85)
9596

9697
Install packages.
9798

9899

99100

100101

101102
### provision:server
102-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L117)
103+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L118)
103104

104105
Configure server.
105106

106107

107108

108109

109110
### provision:ssh
110-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L122)
111+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L123)
111112

112113
Configure SSH.
113114

114115

115116

116117

117118
### provision:deployer
118-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L145)
119+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L146)
119120

120121
Setup deployer user.
121122

122123

123124

124125

125126
### provision:firewall
126-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L189)
127+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision.php#L190)
127128

128129
Setup firewall.
129130

docs/recipe/provision/databases.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,25 @@ Provision databases.
4343

4444

4545
### provision:mysql
46-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision/databases.php#L35)
47-
46+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision/databases.php#L36)
4847

48+
Provision MySQL.
4949

5050

5151

5252

5353
### provision:mariadb
54-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision/databases.php#L40)
55-
54+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision/databases.php#L41)
5655

56+
Provision MariaDB.
5757

5858

5959

6060

6161
### provision:postgresql
62-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision/databases.php#L44)
63-
62+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/provision/databases.php#L46)
6463

64+
Provision PostgreSQL.
6565

6666

6767

recipe/provision.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22
namespace Deployer;
33

4+
require __DIR__ . '/provision/databases.php';
45
require __DIR__ . '/provision/nodejs.php';
56
require __DIR__ . '/provision/php.php';
67
require __DIR__ . '/provision/website.php';

recipe/provision/databases.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@
3232
->limit(1);
3333

3434

35+
desc('Provision MySQL');
3536
task('provision:mysql', function () {
3637
run('apt-get install -y mysql-server', ['env' => ['DEBIAN_FRONTEND' => 'noninteractive']]);
37-
3838
});
3939

40+
desc('Provision MariaDB');
4041
task('provision:mariadb', function () {
4142
warning('mariadb db provision not ready yet');
4243
});
4344

45+
desc('Provision PostgreSQL');
4446
task('provision:postgresql', function () {
4547
warning('postgresql db provision not ready yet');
4648
});

0 commit comments

Comments
 (0)