Hi Chamila,
Agreed. I don't think there would be anymore files in addition to
common.yaml here. How about moving this to root level; for eg:
"platform/kubernetes.yaml" ?
Full Hierarchy will be as follows;
:hierarchy:
- "node/%{::clientcert}"
-
"wso2/%{::product_name}/%{::product_version}/%{::platform}/%{::product_profile}"
- "wso2/%{::product_name}/%{::product_version}/%{::platform}/default"
- "platform/%{::platform}"
- "osfamily/%{::osfamily}"
- wso2/common
- common
:backends:
- yaml
:yaml:
:datadir: "hieradata/%{::environment}"
Thanks.
On Mon, May 9, 2016 at 11:31 AM, Chamila De Alwis <[email protected]> wrote:
> +1
>
> How about wso2/kubernetes.yaml instead of wso2/kubernetes/common.yaml?
> Will there be a YAML file in addition to the common.yaml?
>
> - "wso2/%{::platform}"
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Mon, May 9, 2016 at 10:32 AM, Akila Ravihansa Perera <
> [email protected]> wrote:
>
>> Hi,
>>
>> We recently introduced a facter named "platform" to denote a PaaS
>> framework or cluster management system on which WSO2 products could be
>> deployed. With this addition I feel there is no reason to keep -
>> "vm_type/%{::vm_type}" hierarchy. Also we need to way to introduce
>> configuration parameters that is common across all the products for a
>> specific platform.
>>
>> For eg: In Kubernetes platform, we need to copy the Kubernetes membership
>> scheme and related dependency jars for all the products. Also we need to
>> set the installation dir to "/mnt" (instead of "/mnt/%{ipaddress}" because
>> ipaddress is not available at the image build time.
>>
>> Therefore I'd like to propose that we include the
>> "wso2/%{platform}/common" to the hierarchy. Full hiera.yaml would look like
>> this;
>>
>> :hierarchy:
>> - "node/%{::clientcert}"
>> -
>> "wso2/%{::product_name}/%{::product_version}/%{::platform}/%{::product_profile}"
>> - "wso2/%{::product_name}/%{::product_version}/%{::platform}/default"
>> - "wso2/%{::platform}/common"
>> - wso2/common
>> - "osfamily/%{::osfamily}"
>> - common
>> :backends:
>> - yaml
>> :yaml:
>> :datadir: "hieradata/%{::environment}"
>>
>>
>> Any thoughts?
>>
>> Thanks.
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.; http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
--
Akila Ravihansa Perera
WSO2 Inc.; http://wso2.com/
Blog: http://ravihansa3000.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev