This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Creates a XML of a list of computer. | |
.DESCRIPTION | |
This script is to retrieve the system information in XML. Then we can merge that with another script to create a computer information document. | |
This is primarilydesigned for server audits. It uses CIM to gather certain information. | |
.PARAMETER computername | |
This is the computer to query. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Invoke-CustomPestertest | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[string]$testpath, | |
[decimal]$version, | |
[string]$name | |
) | |
Invoke-Pester -Script @{ Path = '$testpath'; Parameters = @{ Name = $name; Version = $version } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$copyobjectdetails = $inputobject | Get-Member | Where-Object { $_.membertype -eq "Noteproperty" } | |
$hash = @{ } | |
$copyobjectdetails | ForEach-Object { | |
$name = $_.Name | |
$definition = $_.Definition | |
$definitionsplit = ($definition -split '=')[1] | |
$hash.Add($name, $definitionsplit) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Computer Vrt ="Physical" Name = "Server1"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($Clustertype -eq "Clustergroup") | |
{ | |
$eval = testclusterelement -type clustergroup $name | |
if ($eval -eq $false) | |
{ | |
Fail-Json -message "The cluster group $name does not exist. Cannot continue." | |
} | |
#test node ownership - whether or not relevant it is relevant to continue the task | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!powershell | |
# Description: Move Failover cluster from one node to the next. | |
#Requires -Module Ansible.ModuleUtils.Legacy | |
$ErrorActionPreference = 'Stop' | |
$results = @{ | |
changed = $false #mandatory key value pair | |
msg = '' #optional keyvalue pair |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Launch Job Template to transfer archive files to management host | |
tower_job_launch: | |
job_template: " APFW - Helper playbook - Transfer archive to management host" | |
inventory: "{{ inventory }}" | |
credential: "{{ tower_jobcredential }}" | |
limit: "{{ limit }}" | |
tower_username: "{{ tower_username }}" | |
tower_password: "{{ tower_password }}" | |
tower_verify_ssl: no | |
extra_vars: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tower_job_launch: | |
job_template: "APFW - Helper playbook - Transfer archive to management host" | |
inventory: "{{ inventory }}" | |
credential: "{{ tower_jobcredential }}" | |
limit: "{{ management_server }}" | |
tower_username: "{{ tower_username }}" | |
tower_password: "{{ tower_password }}" | |
tower_verify_ssl: no | |
extra_vars: | |
- { management_server: "{{ management_server }}" , search_term: "{{ search_term }}" , destination_logpath: "{{ destination_logpath }}" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tower_credential: | |
- name: test | |
organization: Prometheus | |
credential_type: 'create Custom SSH Cloud Credential' | |
description: test | |
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
tower_credential_types: | |
- name: SSH_Credential | |
description: Custom SSH Credential | |
inputs: | |
fields: | |
- secret: true | |
type: string | |
id: my_private_key | |
label: "Private Key" |
OlderNewer