Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8405A9EAD for ; Fri, 30 Sep 2011 01:08:07 +0000 (UTC) Received: (qmail 4535 invoked by uid 500); 30 Sep 2011 01:08:07 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 4516 invoked by uid 500); 30 Sep 2011 01:08:07 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 4505 invoked by uid 99); 30 Sep 2011 01:08:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 01:08:07 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 01:08:06 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B5CE82A106D for ; Fri, 30 Sep 2011 01:07:45 +0000 (UTC) Date: Fri, 30 Sep 2011 01:07:45 +0000 (UTC) From: "Eric Yang (Resolved) (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: <704568761.10068.1317344865746.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <977340075.8206.1317316305474.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (AMBARI-18) Add special command to write config file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Yang resolved AMBARI-18. ----------------------------- Resolution: Fixed > 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