ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nate Cole <>
Subject Re: optional (blankable) configuration in custom ambari stacks
Date Sat, 04 Jun 2016 20:43:44 GMT
You should be able to annotate your property like so:



From: Xiaoke Zhang <>
Reply-To: "" <>
Date: Friday, June 3, 2016 at 7:28 PM
To: "" <>
Subject: optional (blankable) configuration in custom ambari stacks

I am trying to create a custom stack for Ambari,  I am using version on centos.

One problem I ran into is creating an optionally empty parameter for my service.
srv_ssl_cert and srv_ssl_key. Both are optional. If you don't have it, the service would then
run it on http instead of https.

I tried to put this in my configuration.
-- metainfo.xml
--- my-config

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

  <property require-input="false" >
      Path on disk for SSL certificate in PEM format.
  <property require-input="false" >
      Path on disk for SSL key in PEM format.

Unfortunately, it doesn't work.  Even though some of the ambari workshop examples uses require-input="false".
I tried without the empty <value></value> , ambari just don't show any thing at

I realize I can make it a special value like "none" or "n/a" or ship a with a default self
signed certificate.  Just wondering if ambari has the capability to support optional and "blank
able" parameters.

Thanks for any advice.

View raw message