From c474ecc4c733ed3989204decc3f0d97f4259a34b Mon Sep 17 00:00:00 2001 From: Jason SECULA Date: Thu, 5 Jun 2025 14:30:29 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20du=20fichier=20exemple=20de=20pa?= =?UTF-8?q?ram=C3=A8tres=20g=C3=A9n=C3=A9r=C3=A9=20par=20le=20script=20et?= =?UTF-8?q?=20ajout=20de=20celui-ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/StagingUserAssignation.py | 16 ++++++++-------- scripts/settings.json | 13 +++++++++++++ scripts/syncGLPI.py | 16 ++++++++-------- 3 files changed, 29 insertions(+), 16 deletions(-) create mode 100644 scripts/settings.json diff --git a/scripts/StagingUserAssignation.py b/scripts/StagingUserAssignation.py index 43b48f1..288e1ab 100644 --- a/scripts/StagingUserAssignation.py +++ b/scripts/StagingUserAssignation.py @@ -14,16 +14,16 @@ parser.add_argument("-force", action=argparse.BooleanOptionalAction) args = parser.parse_args() settingsDefault = { - "airwatchServer":"https://apimagenta.phm.education.gouv.fr", - "airwatchAPIKey":"", + "airwatchServer":"https://airwatchServer/", + "airwatchAPIKey":"APIKEY", "airwatchAuthMethod":"CMSURL", - "airwatchCertPath":"", - "airwatchCertPass":"", - "airwatchAPIUser":"", - "airwatchAPIPassword":"", + "airwatchCertPath":"/path/to/cert", + "airwatchCertPass":"certPassword", + "airwatchAPIUser":"UserAPI", + "airwatchAPIPassword":"PasswordUserAPI", "glpiServer":"http://127.0.0.1/glpi/", - "glpiAppToken":"", - "glpiUserToken":"", + "glpiAppToken":"GLPIAppToken", + "glpiUserToken":"GLPIUserToken", "stagingUser":"staging-pr" } diff --git a/scripts/settings.json b/scripts/settings.json new file mode 100644 index 0000000..950c599 --- /dev/null +++ b/scripts/settings.json @@ -0,0 +1,13 @@ +{ + "airwatchServer": "https://airwatchServer/", + "airwatchAPIKey": "APIKEY", + "airwatchAuthMethod": "CMSURL", + "airwatchCertPath": "/path/to/cert", + "airwatchCertPass": "certPassword", + "airwatchAPIUser": "UserAPI", + "airwatchAPIPassword": "PasswordUserAPI", + "glpiServer": "http://127.0.0.1/glpi/", + "glpiAppToken": "GLPIAppToken", + "glpiUserToken": "GLPIUserToken", + "stagingUser": "staging-pr" +} \ No newline at end of file diff --git a/scripts/syncGLPI.py b/scripts/syncGLPI.py index 16feee7..efd437f 100644 --- a/scripts/syncGLPI.py +++ b/scripts/syncGLPI.py @@ -18,16 +18,16 @@ parser.add_argument("-force", action=argparse.BooleanOptionalAction) args = parser.parse_args() settingsDefault = { - "airwatchServer":"https://apimagenta.phm.education.gouv.fr", - "airwatchAPIKey":"", + "airwatchServer":"https://airwatchServer/", + "airwatchAPIKey":"APIKEY", "airwatchAuthMethod":"CMSURL", - "airwatchCertPath":"", - "airwatchCertPass":"", - "airwatchAPIUser":"", - "airwatchAPIPassword":"", + "airwatchCertPath":"/path/to/cert", + "airwatchCertPass":"certPassword", + "airwatchAPIUser":"UserAPI", + "airwatchAPIPassword":"PasswordUserAPI", "glpiServer":"http://127.0.0.1/glpi/", - "glpiAppToken":"", - "glpiUserToken":"", + "glpiAppToken":"GLPIAppToken", + "glpiUserToken":"GLPIUserToken", "stagingUser":"staging-pr" }