Work in progress



Overview


Usiamo un meccanismo di CI/CD per cui:




Setup iniziale dell'ambiente sul


Installare git-crypto 


Copiare da cld-confi




xxxx

Verifica preliminare obbligatoria

Verificare che i repo di test e di produzione siano aggiornati

Per modifiche in env test

Se devi modificare file nell'ambiente di test

    1. cd /var/puppet/puppet_caracal_env_test
    2. modifica i file 
    3. git add file_modificati
    4. git commit --author=author_name -m "commit comment"
    5. git push   WARNING: Since August 2021 for the commit is required the personal token instead of the password! Follow this instruction to create a personal token and remember to save it.  Then use the token instead of the old password otherwise you will get the message:

      [root@cld-config puppet_xena_env_test]# git push
      Username for 'https://github.com': federica.fanzago@cern.ch  (proprio username)
      Password for 'https://federica.fanzago@cern.ch@github.com':  (mettere il token)
      remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
      remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
      fatal: Authentication failed for 'https://github.com/CloudPadovana/puppet_xena.git/'
    6. cd /var/puppet/puppet_caracal
    7. git pull (in questo modo ricevi le modifiche appena fatte in env_test e committate nel repo centrale (web))
    8. git status

Per modifiche in env di produzione

Se devi modificare file nell'ambiente di produzione

    1. cd /var/puppet/puppet_caracal
    2. modifica i file 
    3. git add file_modificati
    4. git commit --author=author_name -m "commit comment"
    5. git push   WARNING: Since August 2021 for the commit is required the personal token instead of the password! Follow this instruction to create a personal token and remember to save it.  Then use the token instead of the old password otherwise you will get the message:

      [root@cld-config puppet_xena_env_test]# git push
      Username for 'https://github.com': federica.fanzago@cern.ch  (proprio username)
      Password for 'https://federica.fanzago@cern.ch@github.com':  (mettere il token)
      remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
      remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
      fatal: Authentication failed for 'https://github.com/CloudPadovana/puppet_xena.git/'
    6. cd /var/puppet/puppet_caracal_env_test
    7. git pull (in questo modo ricevi le modifiche appena fatte in produzione e committate nel repo centrale (web))
    8. git status