Add special command to write config file
----------------------------------------

                 Key: AMBARI-18
                 URL: https://issues.apache.org/jira/browse/AMBARI-18
             Project: Ambari
          Issue Type: New Feature
          Components: agent
    Affects Versions: 0.1.0
         Environment: Python
            Reporter: Eric Yang
            Assignee: Eric Yang
             Fix For: 0.1.0


Add special command to write configuration file with proper ownership and 
permission setup.

The required fields are:

* Username
* Group
* Permission
* Filename
* Content

Example:

{noformat}
cmd = [ 'ambari-write-file', 'eyang', 'staff', 0777, "/tmp/_file_write_test", 
"This is content of the file" ]
FileUtil.writeFile(cmd)
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to