forked from Controls/gitea-pages
replace puppet00 with puppet01
This commit is contained in:
@@ -19,7 +19,7 @@ other for production, with the following hostnames:
|
||||
+====================+================+=================+
|
||||
| sysdb server | boot00-test | boot00 |
|
||||
+--------------------+----------------+-----------------+
|
||||
| puppet server | puppet00-test | puppet00 |
|
||||
| puppet server | puppet00-test | puppet01 |
|
||||
+--------------------+----------------+-----------------+
|
||||
| repository server | repo00-test | repo00 |
|
||||
+--------------------+----------------+-----------------+
|
||||
|
||||
@@ -12,7 +12,7 @@ Deploying a new environment requires the following:
|
||||
- Environment format: ``data-<environment_name>``
|
||||
- And change permissions accordingly
|
||||
|
||||
3. Configuring the environment in Puppet (``puppet00.psi.ch``)
|
||||
3. Configuring the environment in Puppet (``puppet01.psi.ch``)
|
||||
|
||||
Configuring the environment in sysdb
|
||||
------------------------------------
|
||||
@@ -75,7 +75,7 @@ The steps to create and configure a new **GIT** project are:
|
||||
2. Configure *project* permissions as follows:
|
||||
|
||||
- ``[data-<environment_name]->[Settings]->[Repository]``, or directly: https://git.psi.ch/linux-infra/data-(environment_name)/settings/repository
|
||||
- ``[Deploy Keys]`` -> select ``root@puppet00.psi.ch'`` -> click on ``'Enable'``
|
||||
- ``[Deploy Keys]`` -> select ``root@puppet01.psi.ch'`` -> click on ``'Enable'``
|
||||
- ``[data-<environment_name]->[Settings]->[Members]``, or directly: https://git.psi.ch/linux-infra/data-(environment_name)/project_members
|
||||
- Setup specific permissions for specific users or groups. In example:
|
||||
- Set project ``Master``:
|
||||
@@ -84,7 +84,7 @@ The steps to create and configure a new **GIT** project are:
|
||||
- ``[Select members to invite]`` (``ozerov_d``) + ``[Choose a role permission]`` (``Developer``) + ``[Add to project]``
|
||||
- ``[data-<environment_name]->[Settings]->[Integrations]``, or directly: https://git.psi.ch/linux-infra/data-(environment_name)/settings/integrations
|
||||
- Add WebHook as follows:
|
||||
- ``[URL]``: http://puppet00.psi.ch/events/dataupdate
|
||||
- ``[URL]``: http://puppet01.psi.ch/events/dataupdate
|
||||
- (Checked) ``[Push events]``. Uncheck the rest.
|
||||
- ``[SSL verification]`` -> (uncheck) ``[Enable SSL verification]``
|
||||
- Confirm information from above, and click on ``[Add webhook]`` to add the new WebHook.
|
||||
@@ -106,8 +106,8 @@ In example::
|
||||
Configuring the environment in Puppet
|
||||
-------------------------------------
|
||||
|
||||
Current *test* **Puppet** server is ``puppet00-test.psi.ch``. Current *production* **Puppet** server is ``puppet00.psi.ch``. This documentation will take as an example an environment
|
||||
deployed in the *production* server ``puppet00.psi.ch``.
|
||||
Current *test* **Puppet** server is ``puppet00-test.psi.ch``. Current *production* **Puppet** server is ``puppet01.psi.ch``. This documentation will take as an example an environment
|
||||
deployed in the *production* server ``puppet01.psi.ch``.
|
||||
|
||||
You must have ``root`` access to the Puppet server in order to be able to configure it.
|
||||
|
||||
@@ -115,7 +115,7 @@ Steps are:
|
||||
|
||||
1. Login in to the Puppet server::
|
||||
|
||||
ssh root@puppet00.psi.ch
|
||||
ssh root@puppet01.psi.ch
|
||||
|
||||
2. Clone the already created **GIT** project to the ``/srv/puppet/data`` path, which contains all the different projects (Bob environments)::
|
||||
|
||||
@@ -148,9 +148,9 @@ Add a new file <environment_name>.yaml in to the project::
|
||||
git commit -a -m "Added first empty file"
|
||||
git push
|
||||
|
||||
After a few seconds (needs time to trigger the change), check in ``puppet00.psi.ch:/srv/puppet/data/<environment_name>`` that file was successfully triggered (copied) to the puppet server from **GIT**::
|
||||
After a few seconds (needs time to trigger the change), check in ``puppet01.psi.ch:/srv/puppet/data/<environment_name>`` that file was successfully triggered (copied) to the puppet server from **GIT**::
|
||||
|
||||
ssh root@puppet00.psi.ch ls /srv/puppet/data/<environment_name>/<environment_name>.yaml
|
||||
ssh root@puppet01.psi.ch ls /srv/puppet/data/<environment_name>/<environment_name>.yaml
|
||||
|
||||
Full real example::
|
||||
|
||||
@@ -161,5 +161,5 @@ Full real example::
|
||||
git commit -a -m "Added first empty file"
|
||||
git push
|
||||
sleep 5
|
||||
ssh root@puppet00.psi.ch ls /srv/puppet/data/meg/meg.yaml
|
||||
ssh root@puppet01.psi.ch ls /srv/puppet/data/meg/meg.yaml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user