Silent install help for Opsworks

If in the wrong  forum, sorry.

Complete NEWB with GIT. I have a server built, got through that OK, figured out how to create directories, download from S3, created rb scripts etc. but for the life of me, cannot figure out how to do a response template to autoinstall an agent from Solarwinds, or an install for a 3rd party app to accept defaults and accept the EULA.  The setup is hanging at that point.

The 3rd party is just this,

Enter the fully qualified name of the directory beneath which the
product(s) will be installed (default: [/opt/mydir]):
{enter}
Requested installation directory is (/opt/mydir)
Directory (/opt/mydir) does not exist

Do you want to create it now? (default: [y]):

{y}

According to the install log, it does create the directory(which is where the install.log is located, then shows this,

Mon Feb 12 21:11:52 UTC 2018 Product selection confirmed
Mon Feb 12 21:11:52 UTC 2018 Displaying the License Agreement

so need something that will accept it and any other questions that come up. Right now it just sits at running_setup.

The Solarwinds setup is quite different in that it is the init script, and since I want this to deploy to a large group, I want to automate it. It presents a menu when run.

service swiagentd init

   0. Cancel and Exit without Saving
   1. Agent Mode (1 - Agent Initiated, 0 - Server Initiated)  [1]
   2. Orion Poller Hostname/IP  [orion.domain.com]
   3. Orion Poller Port         [17778]
   4. Orion Username            [admin]
   5. Orion Password            []
   6. Proxy Settings…         [mode=disabled]
   7. Save Changes and Exit

I need an answer file that will present the line number, then the answer for it for lines 1, 2, 5 and 7.   I was going to use expect, but apparently not supported.

Hi @acdii,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.

Let me know if you have any other questions or if I can help with anything else.

Cheers!

Here’s how to create an answer file for the Orion Agent. 

SolarWinds Orion Agent (provisioning) [2.1.0.400] Settings, OpenSSL [OpenSSL 1.0.2k-fips  26 Jan 2017]

  1. Cancel and Exit without Saving
  2. Agent Mode (1 - Agent Initiated, 0 - Server Initiated)  [1]
  3. Orion Poller Hostname/IP  [DEV-BRN-SCM-02]
  4. Orion Poller Port         [17778]
  5. Orion Username            [admin]
  6. Orion Password            []
  7. Proxy Settings…         [mode=disabled]
  8. Save Changes and Exit

Choose an option>1

Enter Agent Mode (1 - Agent Initiated, 0 - Server Initiated)

0

SolarWinds Orion Agent (provisioning) [2.1.0.400] Settings, OpenSSL [OpenSSL 1.0.2k-fips  26 Jan 2017]

  1. Cancel and Exit without Saving
  2. Agent Mode (1 - Agent Initiated, 0 - Server Initiated)  [0]
  3. Passive Agent Port        [17790]
  4. Agent Shared Secret       []
  5. Proxy Settings…         [mode=disabled]
  6. Save Changes and Exit

Choose an option>3

Enter Agent Shared Secret

*********

SolarWinds Orion Agent (provisioning) [2.1.0.400] Settings, OpenSSL [OpenSSL 1.0.2k-fips  26 Jan 2017]

  1. Cancel and Exit without Saving
  2. Agent Mode (1 - Agent Initiated, 0 - Server Initiated)  [0]
  3. Passive Agent Port        [17790]
  4. Agent Shared Secret       [*********]
  5. Proxy Settings…         [mode=disabled]
  6. Save Changes and Exit

Choose an option>5

Provision Passive Agent : port [17790]

Press ENTER to continue…

 

The resulting response file for Server Initated would be:

1

0

3

My_secret

5

<CR> ß just a plain enter at the end.

 

The Agent Initiated has a slightly different flow:

SolarWinds Orion Agent [2.1.0.400] Settings, OpenSSL [OpenSSL 1.0.2k-fips  26 Jan 2017]

  1. Cancel and Exit without Saving
  2. Agent Mode (1 - Agent Initiated, 0 - Server Initiated)  [1]
  3. Orion Poller Hostname/IP  [dev-brn-scm-02]
  4. Orion Poller Port         [17778]
  5. Orion Username            [admin]
  6. Orion Password            []
  7. Proxy Settings…         [mode=disabled]
  8. Save Changes and Exit

Choose an option>2

Enter Orion Poller Hostname/IP

my_poller

SolarWinds Orion Agent [2.1.0.400] Settings, OpenSSL [OpenSSL 1.0.2k-fips  26 Jan 2017]

  1. Cancel and Exit without Saving
  2. Agent Mode (1 - Agent Initiated, 0 - Server Initiated)  [1]
  3. Orion Poller Hostname/IP  [my_poller]
  4. Orion Poller Port         [17778]
  5. Orion Username            [admin]
  6. Orion Password            []
  7. Proxy Settings…         [mode=disabled]
  8. Save Changes and Exit

Choose an option>4

Enter Orion Username

MyAdminUserName

SolarWinds Orion Agent [2.1.0.400] Settings, OpenSSL [OpenSSL 1.0.2k-fips  26 Jan 2017]

  1. Cancel and Exit without Saving
  2. Agent Mode (1 - Agent Initiated, 0 - Server Initiated)  [1]
  3. Orion Poller Hostname/IP  [my_poller]
  4. Orion Poller Port         [17778]
  5. Orion Username            [MyAdminUserName]
  6. Orion Password            []
  7. Proxy Settings…         [mode=disabled]
  8. Save Changes and Exit

Choose an option>5

Enter Orion Password

**********

SolarWinds Orion Agent [2.1.0.400] Settings, OpenSSL [OpenSSL 1.0.2k-fips  26 Jan 2017]

  1. Cancel and Exit without Saving
  2. Agent Mode (1 - Agent Initiated, 0 - Server Initiated)  [1]
  3. Orion Poller Hostname/IP  [my_poller]
  4. Orion Poller Port         [17778]
  5. Orion Username            [MyAdminUserName]
  6. Orion Password            [**********]
  7. Proxy Settings…         [mode=disabled]
  8. Save Changes and Exit

Choose an option>7

The resulting response file would be

2

My_poller

4

MyAdminUserName

5

MyPassword

7