<commit_before>tosca_definitions_version: cloudify_dsl_1_0

imports:
    - http://www.getcloudify.org/spec/cloudify/3.1rc1/types.yaml
    - http://www.getcloudify.org/spec/openstack-plugin/1.1rc1/plugin.yaml
    - http://www.getcloudify.org/spec/puppet-plugin/1.1rc1/plugin.yaml


inputs:
    server_name: {}
    image_name: {}
    flavor_name: {}
    security_groups: {}
    userdata: {}

node_templates:
    db-vm:
        type: cloudify.openstack.nodes.Server
        properties:
            server:
                name: { get_input: server_name }
                image_name: { get_input: image_name }
                flavor_name: { get_input: flavor_name }
                security_groups: { get_input: security_groups }
                userdata: { get_input: userdata }
        relationships:
            -   type: cloudify.openstack.server_connected_to_floating_ip
                target: ip
    puppet_db:
        type: cloudify.puppet.nodes.DBMS
        properties:
            puppet_config:
                add_operation_tag: True,
                operations_tags:
                    create: [op_tag_create, tag2]
                environment: e1
                tags: [a, b]
                server: puppet
                node_name_prefix: pfx-
                node_name_suffix: .puppet.example.com
        relationships:
            -   type: cloudify.relationships.contained_in
                target: db-vm

    ip:
        type: cloudify.openstack.floatingip<commit_msg>CFY-1230 fixed puppet agent system test<commit_after>tosca_definitions_version: cloudify_dsl_1_0

imports:
    - http://www.getcloudify.org/spec/cloudify/3.1rc1/types.yaml
    - http://www.getcloudify.org/spec/openstack-plugin/1.1rc1/plugin.yaml
    - http://www.getcloudify.org/spec/puppet-plugin/1.1rc1/plugin.yaml


inputs:
    server_name: {}
    image_name: {}
    flavor_name: {}
    security_groups: {}
    userdata: {}

node_templates:
    db-vm:
        type: cloudify.openstack.nodes.Server
        properties:
            server:
                name: { get_input: server_name }
                image_name: { get_input: image_name }
                flavor_name: { get_input: flavor_name }
                security_groups: { get_input: security_groups }
                userdata: { get_input: userdata }
        relationships:
            -   type: cloudify.openstack.server_connected_to_floating_ip
                target: ip
    puppet_db:
        type: cloudify.puppet.nodes.DBMS
        properties:
            puppet_config:
                add_operation_tag: True,
                operations_tags:
                    create: [op_tag_create, tag2]
                environment: e1
                tags: [a, b]
                server: puppet
                node_name_prefix: pfx-
                node_name_suffix: .puppet.example.com
        relationships:
            -   type: cloudify.relationships.contained_in
                target: db-vm

    ip:
        type: cloudify.openstack.nodes.FloatingIP
{'fraction_non_alphanumeric': 0.08788282290279627, 'fraction_numerical': 0.009986684420772303, 'mean_word_length': 1.746800731261426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5452833', 'n_tokens_mistral': 945, 'n_tokens_neox': 910, 'n_words': 140}