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
1212- Added blackfire.io
1313- Added possiblity to disable Xdebug and Blackfire
1414- Moved php.ini to etc/php/development.ini and etc/php/production.ini
15+ - Added ssh key/config (etc/ssh) setting for /home/.ssh/
1516- Added possibility to use supervisorctl (as root)
1617- Improved provisioning
1718- Refactored layout
Original file line number Diff line number Diff line change 1- - name : Install default packages
1+ - name : Install packages (system tools)
22 yum :
33 name : ' {{ item }}'
44 state : present
55 with_items :
6- # System tools
76 - sudo
8- # Compression
7+
8+ - name : Install packages (compression tools)
9+ yum :
10+ name : ' {{ item }}'
11+ state : present
12+ with_items :
913 - zip
1014 - unzip
1115 - bzip2
12- # Graphic tools
16+
17+ - name : Install packages (graphic tools)
18+ yum :
19+ name : ' {{ item }}'
20+ state : present
21+ with_items :
1322 - ImageMagick
14- # Networking tools
23+
24+ - name : Install packages (network tools)
25+ yum :
26+ name : ' {{ item }}'
27+ state : present
28+ with_items :
1529 - wget
1630 - curl
1731 - net-tools
18- # Utils
32+ - rsync
33+
34+ - name : Install packages (general tools)
35+ yum :
36+ name : ' {{ item }}'
37+ state : present
38+ with_items :
1939 - moreutils
2040 - bind-utils
2141 - 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 11- include : www-data.yml
22 tags :
33 - 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)
22 apt :
33 name : ' {{ item }}'
44 state : present
55 with_items :
6- # System tools
76 - sudo
8- # Compression
7+
8+ - name : Install packages (compression tools)
9+ apt :
10+ name : ' {{ item }}'
11+ state : present
12+ with_items :
913 - zip
1014 - unzip
1115 - bzip2
12- # Graphic tools
16+
17+ - name : Install packages (graphic tools)
18+ apt :
19+ name : ' {{ item }}'
20+ state : present
21+ with_items :
1322 - imagemagick
1423 - graphicsmagick
15- # Networking tools
24+
25+ - name : Install packages (network tools)
26+ apt :
27+ name : ' {{ item }}'
28+ state : present
29+ with_items :
1630 - wget
1731 - curl
1832 - net-tools
19- # Utils
33+ - rsync
34+
35+ - name : Install packages (general tools)
36+ apt :
37+ name : ' {{ item }}'
38+ state : present
39+ with_items :
2040 - 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 11- include : www-data.yml
22 tags :
33 - entrypoint
4+
5+ - include : home-ssh.yml
6+ tags :
7+ - entrypoint
You can’t perform that action at this time.
0 commit comments