sudo-1.4.0

KOSI Plugin sudo Version 1.4.0

Changelog Plugin sudo 1.4.0

Updates

  • update dependencies

Summary

With the sudo plugin you can execute commands with sudo privileges.
The sudo plugin has only one key: tasks. List all the plugins you want to execute with sudo priviledges under this key.
The following usage is supported:

languageversion = "0.1.0";
apiversion = "kubernative/kubeops/sina/user/v3";
name = "kosi-example-packagev3";
description = "kosi-example-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";

files = 
{
  input="template.yaml";
}

containers = 
{
    example=["docker.io", "nginx", "latest"];
}


install 
{ 
   cmd(command='"echo Using the sudo plugin."');
   sudo(password='"test"')
   {
     cmd(command='"touch ~/kosiExample1"');
   }
}

The sudo plugin does need a sudo password, if nopasswd is not set. If you have nopasswd set on your host. Then you do not need the password parameter.

Supported Plugins