BookmarkSubscribeRSS Feed
woo
Barite | Level 11 woo
Barite | Level 11

Hi All,

If we have to run cookbooks (example below) via chef to work on pre-requisite + installation of SAS Viya 3.5, how can we do that? And reason is we won't have sudo/root access to run any command as root. Not quite sure how wrapper or script if any would work;

 

package "nginx" do 

    action :install

end 

 

Any suggestion/recommendation/documentation is appreciated. 

2 REPLIES 2
dlawto2
Obsidian | Level 7
You would run the ansible playbook using your install ID, but it must have the ability to sudo commands. In the installation guide the following is the criteria needed for the install ID:

The user account that is used to configure and start the deployment process must meet the following requirements:

* Super user (sudo) or root access.
* To verify that your user ID is included in the sudoers file, run the following command:

sudo -v

* As an alternative, to verify your sudoers privileges, run this command:

sudo -l

* Make sure that commands that can be run as "sudo" are unrestricted on the installation computer.
* This user account must be able to access the following accounts as "sudo": root, sas, and cas. Instructions for configuring the sas and cas accounts are provided in thisguide.
* Appropriate permissions to create subdirectories in the directory where you saved the playbook. The recommended path is /sas/install/sas_viya_playbook. For more information, see Store the Playbook.
* A home directory.
You can try to get PowerBroker installed. We use that with Chef at our location.

woo
Barite | Level 11 woo
Barite | Level 11

Thank you @ dlawto2.

 

so how do we wrap ansible playbook around cookbook and chef then? How we execute it? if you can please help to understand. Thanks again. 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1426 views
  • 0 likes
  • 2 in conversation