# Questions.yml and its use

**URL:** <https://forums.suse.com/t/questions-yml-and-its-use/36796>\
**Category:** General\
**Created:** [January 24, 2022, 10:24am UTC](https://forums.suse.com/t/questions-yml-and-its-use/36796 "2022-01-24T10:24:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freedpary](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/freedpary/32/8543_2.png) [@freedpary](https://forums.suse.com/u/freedpary)\
**Post date:** [January 24, 2022, 10:24am UTC](https://forums.suse.com/t/questions-yml-and-its-use/36796/1 "2022-01-24T10:24:53Z")

</div>

**Hello friends trying to use questions.yml**  
**and it contains variables.**

```auto
- variable: customVars
  default: true
  label: Default custom vars
  type: boolean
  required: true
  show_subquestion_if: true
  group: "Vars"
  subquestions:
    - variable: env.ENVCOLOR
      type: boolean
      label: ENVCOLOR
      default: "fuchsia-1"
      required: true

```

**how can i use this block in deployment**  
**which describes for example, and can I use it like this:**

```auto
        env:
        - name: "TZ"
          value: "Europe/Moscow"
        {{- if .jaegerHostAgent }}
        - name: JAEGER_AGENT_HOST
          valueFrom:
            fieldRef:
              fieldPath: status.hostIP
        - name: JAEGER_AGENT_PORT
          value: "5775"
        - name: JAEGER_URL
          value: "$(JAEGER_AGENT_HOST):$(JAEGER_AGENT_PORT)"
        - name: JAEGER_HOST
          value: "$(JAEGER_AGENT_HOST)"
        - name: JAEGER_PORT
          value: "$(JAEGER_AGENT_PORT)"
        {{- end }}
        {{- with .env }}
        {{- range . }}
        - name: {{ .name }}
          value: {{ .value | quote }}
        {{- end }}
        {{- end }}
        {{- if $.Values.customVars }}
        {{- with $.Values.env }}
        {{- range . }}
        - name: 
          value: ""
        {{- end }}
        {{- end }}

```

I will be grateful for any help, I am new to this matter, thank you very much!
