So, now that I have time to work on this again, to recap, I can create my PSEnsure as I usually do. I can create all of my shared functions as a PowerShell module, and store them as a PowerShell script asset be able to call them as needed in my various roles as needed, and more than just one? I will also not need to copy and manage each PowerShell Module/ Function as a traditional PowerShell module and copy them over to the file system of each server and manage that? If I can create a separate module for each function, store them as a PowerShell Script asset, and call them as needed, then I believe this will work for my PSEnsure roles, and I will be able to standardize the function by calling them from a separate location instead of including them each time with each PSEnsure, which is very cumbersome and costing me a great deal of time.
Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Posts
-
RE: Adding functions in Otter
-
RE: Feature Request: Please add inside each Role which servers have drifted, and which ones are compliant.
Is this something that is possible to do? It would help greatly with nailing down witch servers need work and which ones don't.
-
RE: Reporting for Otter
So I looked over OT-331, and while close, I am looking for each role to report the status of each server that has that role assigned to it, and whether it has drifted or is current. Thanks!
-
Feature Request: Please add inside each Role which servers have drifted, and which ones are compliant.
Please add in the roles which servers have Drifted and which ones are Current. One needs to be able to see this information broke down. Possible add something in the API as well for each role to have drifted, current, and the other statuses?
Product: Otter
Version: 2.2.2 -
Inedo Hub roll back to previous versions?
Is it possible to have the Inedo Hub roll back to previous versions for you? Thanks!
Product: Otter
Version: 2.2.3 -
Using BITS to distrubute packages without an Inedo agent
Hello, I am wondering if it would be possible to add support for BITS to be used to distribute Universal Packages instead of using Inedo agent? Every supported version of Windows has BITS, and is allowed through most firewalls, especially since System Center Configuration Manager (SCCM) uses BITS as well.
Product: ProGet
Version: 5.1.23 -
RE: Feature Request- Show status of Agent or Agentless comunnication status
I have seen this added in the past few beta builds, and this works nice. As a cherry on top, can we get a filter to be added similar to the status filters, etc? Great work and thanks; your work is appreciated!
-
RE: Update agent or downloads
Alright, I have my one token agent I had to update. Thanks!
-
Reporting for Otter
Hello, I would like to be able to have provided in a role or list of nested roles, the servers that have drifted or not drifted from each specific role. I want to do this for change control so I have a list of server I can include that need xyz done to them. I don't want to have to click on each server or role to determine this. A PowerShell module would greatly aid in this.
Product: Otter
Version: 2.2.0-beta.15 -
Update agent or downloads
Hello, my servers are located behind a firewall that blocks access from the internet with a few sites as exceptions. Is there a way to have the agent updates from the Otter server instead of looking at a public cloud? Public clouds will not be granted access to the servers per our security policy. I can update from my Otter server as I have a specific need. Thanks!
Product: Otter
Version: 2.2.0-beta.15 -
RE: Feature Request- Server Import Improvment
Is this doable at all? I am trying to get the rest of my infrastructure added to Otter. Thanks!
-
RE: PowerShell execution error
I would post the script as to allow everyone see what you are attempting to do.
-
Feature Request- Server Import Improvment
Hello, I would like to ask that the server import be modified to do a few different things. One, I would like an option to ignore duplicate servers. If I am importing 100 servers at a time, I want the option to ignore those system and import the rest so each server I don't have to stop. Every. Time. There. Is. An. Error. Quite annoying, and an inherent problem working with web interfaces. Another option is to overwrite existing servers with an option to merge the existing server object with updated settings in your json import, as to do new bulk settings. Like if I want to add a new variable to 100 servers that are already in Otter.
Of course, this task would be way easier with a PowerShell Otter Module :D ....
Product: Otter
Version: 2.2.0-beta.10 -
RE: Adding functions in Otter
Update: so for whatever reason, after I left for lunch and came back, this particular gremlin decided to leave. I can call a single script, however, this does not meet my requirement of using separate multiple scripts for different functions, and I cannot run this with a configure block as well; it's one or the other.
So back to square one. Can this functionality be added in to run a script asset in a psensure?
-
RE: Adding functions in Otter
So looking at your example, I tried the "ConfigureScript: test". I have a powershell script asset called test with this in it:
function TestFunction (){
Write-Warning 'TestFunction was successful'
}
TestFunctionAnd this simple psensure:
##AH:UseTextMode
PSEnsure
(
Key: Test,
Value: True,
Collect: >>
$false>>, Configure: >> >>, ConfigureScript: Test);
Won't run the asset as it says it can't find it, even though I see it fine under assets and when I look where my raft exists in bitbucket, it is there as well.
Even if it did run it, I can only run one script as it does not appear to be an array? That does not meet my requirement of being able to run multiple scripts/functions/assets/ whatever they are called.
So am I probably not explaining this very well. In my PSensure, I have pieces of code that I have to include many different times that I want to keep as a script asset/function, whatever. My intent is instead of duplicating this code 1000 times, I can change it in one place and just call the script from one location while doing my psensure. Make sense?
-
RE: Adding functions in Otter
Hello, I have a simple test function as a script asset:
function TestFunction (){
Write-Warning 'TestFunction was successful'
}And I have the psensure. I have tried to make this is simple as possible for clarity:
##AH:UseTextMode
PSEnsure
(
Key: Test,
Value: True,
Collect: >>
$false
>>,
Configure: >>
pscall test;
>>
);This does not work. I have not been able to call any assets in a PSensure. I have made this example as simple as possible. As far as I can tell, assets don't work in PSEnsure configurations. How can I store PowerShell functions
equivalent in Otter so I can call them in a PSEnsure? Am I doing something wrong?
-
RE: Another API Question
Adding for ideas:
Will need cmdlets to create, edit, delete, start and stop configuration and orchestration work. Allow to accept pipeline input. That way I can schedule at that time, to run an orchestration job, pick the servers based on the results of the orchestration, and run a job at that time for those servers, environments, or roles that fit the criteria.
-
RE: Adding functions in Otter
<crickets>
Anyone? Am I not doing this right, or does it not work that way?
-
WinRM issues
So I am thinking I may have spn issues, and am not able to attempt some of the fixes, so I am stuck with adding a separate setspn to deal with just deal with this. Agent installs are not an option. My question is can Otter utilize session options in WinRM? Example I sound on technet:
As I have seen in this link:
https://www.reddit.com/r/PowerShell/comments/3ze9pp/cannot_use_powershell_remoting_when_a_http_spn/
You can create a port specific spn:
SetSPN.exe -s HTTP/$($env:COMPUTERNAME):5985 $env:COMPUTERNAME SetSPN.exe -s HTTP/$($env:COMPUTERNAME).$($env:USERDNSDOMAIN):5985 $env:COMPUTERNAMEand then create a session using an option:
# Create and use session $sessionOptions = New-PSSessionOption -IncludePortInSPN Enter-PSSession -Computername <computername> -SessionOption $sessionOptionsProduct: Otter
Version: 2.2.0-beta.4 -
RE: Impossible to install
I have had issues in the not too distant past, maybe 3-6 months ago upgrading one of my installs of Otter to the latest version, 2.0.9 if memory servers. I would concur that the installs/upgrades could use some love. There definitely should be a 'cleanup' tool to remove all traces of Inedo installs.
Ron, I wouldn't give up on using the products. Maybe you can spin up a vm to try this out on as well?