File tree Expand file tree Collapse file tree 7 files changed +121
-13
lines changed Expand file tree Collapse file tree 7 files changed +121
-13
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ PHP Docker Boilerplate Changelog
12
12
- Added blackfire.io
13
13
- Added possiblity to disable Xdebug and Blackfire
14
14
- Moved php.ini to etc/php/development.ini and etc/php/production.ini
15
+ - Added ssh key/config (etc/ssh) setting for /home/.ssh/
15
16
- Added possibility to use supervisorctl (as root)
16
17
- Improved provisioning
17
18
- Refactored layout
Original file line number Diff line number Diff line change 1
- - name : Install default packages
1
+ - name : Install packages (system tools)
2
2
yum :
3
3
name : ' {{ item }}'
4
4
state : present
5
5
with_items :
6
- # System tools
7
6
- sudo
8
- # Compression
7
+
8
+ - name : Install packages (compression tools)
9
+ yum :
10
+ name : ' {{ item }}'
11
+ state : present
12
+ with_items :
9
13
- zip
10
14
- unzip
11
15
- bzip2
12
- # Graphic tools
16
+
17
+ - name : Install packages (graphic tools)
18
+ yum :
19
+ name : ' {{ item }}'
20
+ state : present
21
+ with_items :
13
22
- ImageMagick
14
- # Networking tools
23
+
24
+ - name : Install packages (network tools)
25
+ yum :
26
+ name : ' {{ item }}'
27
+ state : present
28
+ with_items :
15
29
- wget
16
30
- curl
17
31
- net-tools
18
- # Utils
32
+ - rsync
33
+
34
+ - name : Install packages (general tools)
35
+ yum :
36
+ name : ' {{ item }}'
37
+ state : present
38
+ with_items :
19
39
- moreutils
20
40
- bind-utils
21
41
- pygpgme
42
+
Original file line number Diff line number Diff line change
1
+ # create a directory if it doesn't exist
2
+ - name : Create /home/.ssh/
3
+ file :
4
+ path : /home/.ssh/
5
+ state : directory
6
+ mode : 0750
7
+ owner : " {{ DOCKER.CLI_USER }}"
8
+ group : " {{ DOCKER.CLI_USER }}"
9
+
10
+ - name : Sync etc/ssh/ to /home/.ssh
11
+ local_action : synchronize src=/docker/etc/ssh/ dest=/home/.ssh/ perms=no
12
+ ignore_errors : True
13
+
14
+ - name : Fix /home/.ssh/ permissions
15
+ file :
16
+ path : /home/.ssh/
17
+ state : directory
18
+ owner : " {{ DOCKER.CLI_USER }}"
19
+ group : " {{ DOCKER.CLI_USER }}"
20
+ recurse : yes
21
+ ignore_errors : True
22
+
23
+ - name : Fix ssh key permissions (if exists)
24
+ file :
25
+ path : /home/.ssh/id_rsa
26
+ mode : 0600
27
+ owner : " {{ DOCKER.CLI_USER }}"
28
+ group : " {{ DOCKER.CLI_USER }}"
29
+ ignore_errors : True
Original file line number Diff line number Diff line change 1
1
- include : www-data.yml
2
2
tags :
3
3
- entrypoint
4
+
5
+ - include : home-ssh.yml
6
+ tags :
7
+ - entrypoint
Original file line number Diff line number Diff line change 1
- - name : Install default packages
1
+ - name : Install packages (system tools)
2
2
apt :
3
3
name : ' {{ item }}'
4
4
state : present
5
5
with_items :
6
- # System tools
7
6
- sudo
8
- # Compression
7
+
8
+ - name : Install packages (compression tools)
9
+ apt :
10
+ name : ' {{ item }}'
11
+ state : present
12
+ with_items :
9
13
- zip
10
14
- unzip
11
15
- bzip2
12
- # Graphic tools
16
+
17
+ - name : Install packages (graphic tools)
18
+ apt :
19
+ name : ' {{ item }}'
20
+ state : present
21
+ with_items :
13
22
- imagemagick
14
23
- graphicsmagick
15
- # Networking tools
24
+
25
+ - name : Install packages (network tools)
26
+ apt :
27
+ name : ' {{ item }}'
28
+ state : present
29
+ with_items :
16
30
- wget
17
31
- curl
18
32
- net-tools
19
- # Utils
33
+ - rsync
34
+
35
+ - name : Install packages (general tools)
36
+ apt :
37
+ name : ' {{ item }}'
38
+ state : present
39
+ with_items :
20
40
- moreutils
21
- - dnsutils
41
+ - dnsutils
Original file line number Diff line number Diff line change
1
+ # create a directory if it doesn't exist
2
+ - name : Create /home/.ssh/
3
+ file :
4
+ path : /home/.ssh/
5
+ state : directory
6
+ mode : 0750
7
+ owner : www-data
8
+ group : www-data
9
+
10
+ - name : Sync etc/ssh/ to /home/.ssh
11
+ local_action : synchronize src=/docker/etc/ssh/ dest=/home/.ssh/ perms=no
12
+ ignore_errors : True
13
+
14
+ - name : Fix /home/.ssh/ permissions
15
+ file :
16
+ path : /home/.ssh/
17
+ state : directory
18
+ owner : www-data
19
+ group : www-data
20
+ recurse : yes
21
+ ignore_errors : True
22
+
23
+ - name : Fix ssh key permissions (if exists)
24
+ file :
25
+ path : /home/.ssh/id_rsa
26
+ mode : 0600
27
+ owner : www-data
28
+ group : www-data
29
+ ignore_errors : True
Original file line number Diff line number Diff line change 1
1
- include : www-data.yml
2
2
tags :
3
3
- entrypoint
4
+
5
+ - include : home-ssh.yml
6
+ tags :
7
+ - entrypoint
You can’t perform that action at this time.
0 commit comments