Skip to content

Commit

Permalink
sanitized
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Hemminger committed Mar 2, 2017
1 parent 22b39be commit 66e0924
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def decrypt(file_name):
LOGGER.error(err)
return False

AD_USER = 'lambda.aws'
AD_USER = 'user_with_ad_admin_access'
AD_PASSWORD = decrypt('encrypted_AD_password.txt')
AD_SERVER = 'paw2am-ad01.teamfreeze.com'
machine_name = 'taw2bl-testty16'
AD_SERVER = 'ad-server.example.com'
machine_name = 'testhostname'

if machine_name:
s = winrm.Session(AD_SERVER, auth=(AD_USER, AD_PASSWORD))
Expand Down
12 changes: 6 additions & 6 deletions test2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ def decrypt(file_name):
print err
return False

AD_USER = 'lambda.aws'
AD_USER = 'user_with_host_access_and_sw_admin_access'
AD_PASSWORD = decrypt('encrypted_AD_password.txt')
AD_SERVER = 'paw2am-ad01.teamfreeze.com'
SW_SERVER = 'solar.teamfreeze.com'
SW_USER = 'auto.manage'
AD_SERVER = 'ad-server.example.com'
SW_SERVER = 'solarwinds.example.com'
SW_USER = 'user_with_host_access_and_sw_admin_access'
SW_PASSWORD = decrypt('encrypted_SW_password.txt')

machine_name = 'taw2al-tstlam01'
machine_ip = '172.21.16.188'
machine_name = 'testswmachine'
machine_ip = '192.1.1.8'

if machine_name:
ps_script = """Add-PSSnapin SwisSnapin
Expand Down

0 comments on commit 66e0924

Please sign in to comment.