}
+#------------------------------------------------------------------------------
+generate_csr_attributes() {
+
+ info "Generating ${GREEN}YAML files for csr_attributes${NORMAL} ..."
+
+ local conf_dir="/etc/puppetlabs/puppet"
+ local yfile="${conf_dir}/csr_attributes.yaml"
+ info "Generating '${GREEN}${yfile}${NORMAL}' ..."
+ local content=$( cat <<-EOF
+ ---
+ extension_requests:
+ 1.3.6.1.4.1.34380.1.2.1: '${CUSTOMER}'
+ 1.3.6.1.4.1.34380.1.2.2: '${PROJECT}'
+ 1.3.6.1.4.1.34380.1.2.3: '${TIER}'
+ EOF
+ )
+ debug "Generatet content of '${yfile}':\n${content}"
+ echo "${content}" > "${yfile}"
+
+}
+
#------------------------------------------------------------------------------
run_agent() {
check_installed_rpm
generate_puppetconf
+ generate_csr_attributes
generate_facts
empty_oracle_repo_files || true