Using chef to add hosting server

361
3
02-20-2019 07:02 AM
PeterHanmore
New Contributor III

I've been trying to completely automate our Portal installation using Chef but can't find any recipe for adding our federated server as the hosting server.  Is this possible using Chef - I would have thought if you could add a Federated Server you could also add that same server as the hosting server.

I do have

"is_hosting": true

in my federation role json file but it does not seem to have any effect.

0 Kudos
3 Replies
TrevorNickolai
New Contributor III

Hey Peter,

Are deploying the Enterprise using Chef client or Chef Server?

0 Kudos
PeterHanmore
New Contributor III

I was using the Chef client.

After digging into the scripts a bit further I found that there is code in the portal.rb file that should update the server configuration to add the federated server as the hosting server.

For whatever reason, this wasn't happening when I ran my federation role.  I tried it a few times - same result - so I removed the federated server through portaladmin and ran the script again and it seemed to take this time.  Not sure if it's an issue or not but I now have 24 PostreSQL processes running after adding the hosting server.

0 Kudos
TrevorNickolai
New Contributor III

Hey Peter,

I had to re-deploy my Chef to check out my template and when deploying I used one role format (default template provided in the cookbook you can find here: Releases · Esri/arcgis-cookbook · GitHub ) and I went into the "webgis-windows.json" template, and I added the "federation" section and included the needed parameters and when I ran the chef deploy script it federated it as hosted successfully.

In case you want it as reference, I have included the "federation" node I included in the webgisdr-windows.json role:

"federation":{
   "wa_url":"https://PortalsPublicURL.domain.com/portal",
   "admin_username":"ServerUsername",
   "admin_password":"ServerPassword",
   "web_context_url":"https://ArcGISServersURL.domain.com/server",
   "private_url":"https://ArcGISServersFQDN.domain.com:6443/arcgis",
   "is_hosting":"True"
}

The thing I noticed though, is if we go here: arcgis-enterprise Cookbook - Chef Supermarket  it appears that is_hosting is set to "true" by default.  It could be possible that during the deployment, for some reason the Data Store wasn't validating properly with ArcGIS Server or Portal.

0 Kudos