Changes between Version 95 and Version 96 of SystemAdministration/Default_VM_setup


Ignore:
Timestamp:
08/15/18 20:34:55 (6 years ago)
Author:
André Moreira
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SystemAdministration/Default_VM_setup

    v95 v96  
    9696systemctl start docker.service
    9797}}}
    98 ### "deploy" and "setup" users' configuration ###
     98### "deploy" and "setup" users' configuration -> needs manual copy of private deploy key for gitlab/github in <1> ###
    9999
    100100{{{
     
    118118## Configure 'setup' user gitlab access
    119119mkdir -p /home/setup/.ssh
    120 ## Add the private part of the deploy key to /home/setup/.ssh/id_rsa_gitlab_deploy
    121120sudo tee '/home/setup/.ssh/config' <<'EOF'
    122121#Deploys
     
    127126EOF
    128127
     128## <1> <Manually copy the private deploy key to /home/setup/.ssh/id_rsa_gitlab_deploy>
     129
     130chown -R setup:setup /home/setup/.ssh
     131chmod go+rx /home/deploy
     132
    129133## Add sudo rights to deploy and setup users
    130134echo '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
     
    144148 
    145149## Setup the deploy.sh script on the 'deploy' user home
    146 (su deploy
    147 cd ~
     150sudo -u deploy bash -i -c "
     151(cd ~
    148152mkdir deploy-assets
    149153cd deploy-assets
     
    155159git gc --prune=all
    156160cd ../..
    157 ln -s deploy-assets/deploy-script/deploy.sh deploy.sh
    158 exit)
    159 }}}
    160 ### Postfix configuration for host email (script) ###
     161ln -s deploy-assets/deploy-script/deploy.sh deploy.sh)"
     162}}}
     163### Postfix configuration for host email (script) -> run as it is ###
    161164
    162165{{{
     
    246249{{{
    247250{
    248   "storage-driver": "overlay2",
    249   "storage-opts": [
    250     "overlay2.override_kernel_check=true"
    251   ],
    252251  "log-driver": "fluentd",
    253252  "log-opts": {
     
    267266Reference: https://docs.fluentd.org/v1.0/articles/install-by-rpm
    268267
    269 Run
     268Run as it is:
    270269
    271270{{{
    272271#!/bin/bash
    273272
    274 TD_AGENT_VERSION="3.1.1-0.el7"
     273TD_AGENT_VERSION="3.2.0-0.el7"
    275274MULTI_FORMAT_PARSER_VERSION="1.0.0"
    276275SECURE_FORWARD_PARSER_VERSION="0.4.5"
     
    330329### Td-agent Configuration ###
    331330
    332 Create or edit /etc/td-agent/td-agent.conf with the following content:
     331Create or edit /etc/td-agent/td-agent.conf with the following content (adapt the variable !`self_hostname`):
    333332
    334333{{{