Changes between Version 95 and Version 96 of SystemAdministration/Default_VM_setup
- Timestamp:
- 08/15/18 20:34:55 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SystemAdministration/Default_VM_setup
v95 v96 96 96 systemctl start docker.service 97 97 }}} 98 ### "deploy" and "setup" users' configuration ###98 ### "deploy" and "setup" users' configuration -> needs manual copy of private deploy key for gitlab/github in <1> ### 99 99 100 100 {{{ … … 118 118 ## Configure 'setup' user gitlab access 119 119 mkdir -p /home/setup/.ssh 120 ## Add the private part of the deploy key to /home/setup/.ssh/id_rsa_gitlab_deploy121 120 sudo tee '/home/setup/.ssh/config' <<'EOF' 122 121 #Deploys … … 127 126 EOF 128 127 128 ## <1> <Manually copy the private deploy key to /home/setup/.ssh/id_rsa_gitlab_deploy> 129 130 chown -R setup:setup /home/setup/.ssh 131 chmod go+rx /home/deploy 132 129 133 ## Add sudo rights to deploy and setup users 130 134 echo 'Cmnd_Alias GIT_TAGSONLY_COMMANDS = /bin/git init *, /bin/git remote add origin *, /bin/git reflog expire --expire=all --all, /bin/git tag -l, /bin/git tag -d *, /bin/git fetch origin --depth\=1 +refs/tags/*\:refs/tags/*, /bin/git reset --hard tags/*, /bin/git ls-remote --tags *, /bin/git describe --tags, /bin/git gc --prune=all, /bin/git add ., /bin/git commit -m *, /bin/git rev-parse --abbrev-ref HEAD, /bin/git branch *, /bin/git branch -D *.backup*, /bin/git checkout *, /bin/git status, /bin/git status *, /bin/git diff, /bin/git diff *' | sudo EDITOR='tee -a' visudo … … 144 148 145 149 ## Setup the deploy.sh script on the 'deploy' user home 146 (su deploy 147 cd ~150 sudo -u deploy bash -i -c " 151 (cd ~ 148 152 mkdir deploy-assets 149 153 cd deploy-assets … … 155 159 git gc --prune=all 156 160 cd ../.. 157 ln -s deploy-assets/deploy-script/deploy.sh deploy.sh 158 exit) 159 }}} 160 ### Postfix configuration for host email (script) ### 161 ln -s deploy-assets/deploy-script/deploy.sh deploy.sh)" 162 }}} 163 ### Postfix configuration for host email (script) -> run as it is ### 161 164 162 165 {{{ … … 246 249 {{{ 247 250 { 248 "storage-driver": "overlay2",249 "storage-opts": [250 "overlay2.override_kernel_check=true"251 ],252 251 "log-driver": "fluentd", 253 252 "log-opts": { … … 267 266 Reference: https://docs.fluentd.org/v1.0/articles/install-by-rpm 268 267 269 Run 268 Run as it is: 270 269 271 270 {{{ 272 271 #!/bin/bash 273 272 274 TD_AGENT_VERSION="3. 1.1-0.el7"273 TD_AGENT_VERSION="3.2.0-0.el7" 275 274 MULTI_FORMAT_PARSER_VERSION="1.0.0" 276 275 SECURE_FORWARD_PARSER_VERSION="0.4.5" … … 330 329 ### Td-agent Configuration ### 331 330 332 Create or edit /etc/td-agent/td-agent.conf with the following content :331 Create or edit /etc/td-agent/td-agent.conf with the following content (adapt the variable !`self_hostname`): 333 332 334 333 {{{