<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Scripting on CloudBolt Documentation</title>
		<link>https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/</link>
		<description>Recent content in Scripting on CloudBolt Documentation</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<atom:link href="https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Disable OpenSSH on Windows servers</title>
				<link>https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/disable-openssh/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/disable-openssh/</guid>
				<description>&lt;p&gt;Currently, SSH is the only supported connection method in OneFuse. Trying to uninstall OpenSSH while connected using it is problematic. This method uses WinRM to connect to the target server to uninstall OpenSSH.&lt;/p&gt;&#xA;&lt;p&gt;This article assumes you have a bastion/jump server configured with OpenSSH, and that your Windows templates already have OpenSSH installed. This has only been tested on Windows 2016 and 2019, but may work on other versions of Windows with modification.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Install packages with Chocolatey</title>
				<link>https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/install-chocolatey/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/install-chocolatey/</guid>
				<description>&lt;p&gt;This article assumes that your Windows templates already have OpenSSH and Chocolatey installed. If using a bastion/jump server, the article assumes that OpenSSH, Chocolatey and WinRM are configured. This has only been tested on Windows 2016 and 2019, but may work on other versions of Windows with modification.&lt;/p&gt;&#xA;&lt;div class=&#34;alert alert-warning&#34; role=&#34;alert&#34;&gt;&#xA;&lt;p&gt;The code provided in this walkthrough is a sample only. It should be thoroughly reviewed and tested before use in your environment.&lt;/p&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>Execute PowerShell scripts using a bastion host</title>
				<link>https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/bastion-host/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/bastion-host/</guid>
				<description>&lt;p&gt;This method allows for connection over PowerShell/WinRM to a target server. This is to support execution of scripts on Provisioned nodes that do not have SSH running.&lt;/p&gt;&#xA;&lt;p&gt;Currently, the Scripting module only supports the use of OpenSSH connection types on Windows servers. This will require WinSSH to the Bastion host from the OneFuse appliance (TCP 22) to copy and execute the desired PowerShell script. Then, utilize WinRM (TCP 5985, 5986) to the Provisioned Node.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Produce output from Scripting policies</title>
				<link>https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/producing-output/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/onefuse/configure/modules/scripting/producing-output/</guid>
				<description>&lt;p&gt;A managed object for OneFuse Scripting Policy can include &amp;ldquo;output&amp;rdquo; under the section &amp;ldquo;provisioningDetails&amp;rdquo; or &amp;ldquo;deprovisioningDetails&amp;rdquo;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;&#xA;&lt;p&gt;The script being executed must produce valid JSON strings to STDOUT. This output is then captured by the Scripting Module and used to populate the &amp;ldquo;output&amp;rdquo; fields.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-it-works&#34;&gt;How it works&lt;/h2&gt;&#xA;&lt;p&gt;Each JSON string written towards STDOUT will result in an escaped JSON string in the array called &amp;ldquo;output&amp;rdquo; under &amp;ldquo;provisioningDetails&amp;rdquo; or &amp;ldquo;deprovisioningDetails&amp;rdquo;. The structure and key/value names of the JSON string depend on your requirement. The Scripting Module requires that the string must be a valid JSON string. This functionality is valid for both BASH scripts and PowerShell scripts.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
