Giter VIP home page Giter VIP logo

rds-with-ansible's Introduction

*** in progress ***

Preparation on Windows server:

- join domain
- add Active Directory user (Ansible user) to local administrator group
- for testing purposes WinRM is set to allow unencrypted

	winrm set winrm/config/service @{AllowUnencrypted="true"}

#################################################################################

Preparation on Ansible host (Single-Server, all RDS features on a single server):

- put FQDN of target server under group [singleserver] in inventory file
- remaining configuration via vars/single.yml:
  - choose AD group
  - choose collection name and description
  - choose remote apps (see below)

Run playbook: ansible-playbook single_rds.yml -vvvv

#################################################################################

Preparation on Ansible host (Multi-Server, RDS features deployed on different servers):

The Dsc parameters 'PsDscRunAsCredential_username' and 'PsDscRunAsCredential_password' are needed. 
Otherwise it will give an error, because it can't connect via PowerShell remoting.

- add connectionbroker FQDN to inventory file beneath [connectionbroker] 
- add sessionhost FQDN to group [sessionhost] 
- add webaccess FQDN to group [webaccess] 
- add your AD credentials to group_vars/all.yml by:
  - echo "username: [email protected]" >> group_vars/all.yml
  - ansible-vault encrypt_string 'Pa$$w0rd' --name 'password' >> group_vars/all.yml
- remaining configuration via vars/single.yml:
  - choose AD group
  - choose collection name and description
  - choose remote apps (see below)

run playbook: ansible-playbook multi_rds.yml --ask-vault-pass -vvvv

#################################################################################

Information on installing software and publish them as remote apps:

The file vars/software.yml needs to be filled manually. 
The field extra in vars/software.yml is to indicate that it comes with an installer and is no
Windows utility like Calculator or Notepad.
The field exists in vars/software.yml holds the apps current installation status: 
exists: TRUE = software already installed
exists: FALSE = software has not been installed

To prevent unnecessary copying roles/extra_apps_pretasks/tasks/checkexistence.yml will check,
if the software has already been installed. This is done by looking up the product_id 
within HKLM:.../Uninstall/product_id. 
If the product_id was found Ansible will not create a directory, thus not copy and install software. 
Then roles/extra_apps_pretasks/tasks/main.yml will create dir, copy installer and install software.
by reading product id from registry. If it is already installed it will set the field exists 
to TRUE in vars/software.yml

rds-with-ansible's People

Contributors

0x2aas avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

rtafleet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.