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
in my federation role json file but it does not seem to have any effect.
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.
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:
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.