BookmarkSubscribeRSS Feed
Lapis Lazuli | Level 10 woo
Lapis Lazuli | Level 10

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



Any suggestion/recommendation/documentation is appreciated. 

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.

Lapis Lazuli | Level 10 woo
Lapis Lazuli | Level 10

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 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2 in conversation