Project

General

Profile

Actions

Bug #12998

closed

Missing report on File key-value present

Added by Martin Zbozien over 6 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Hi
I have problem with File key-value present.
I need make check on that string:

CONFIG_FILE="/etc/zabbix/zabbix_agentd.conf"

key: CONFIG_FILE
separator: =
value: "/etc/zabbix/zabbix_agentd.conf"

And I'm all time getting

[Missing] [Missing report #0]
[Success] Ensure line in format key=value in /etc/default/zabbix-agent was correct

I'm using 4.3.3 version

Not sure if it is bug or I'm doing something wrong.

Full technique export json below:

{
  "type": "ncf_technique",
  "version": 1,
  "data": {
    "bundle_args": [],
    "bundle_name": "Zabbix_Agent",
    "description": "",
    "name": "Zabbix-Agent Default Proc Conf",
    "version": "1.0",
    "parameter": [],
    "method_calls": [
      {
        "args": [
          "/etc/default/zabbix-agent" 
        ],
        "class_context": "ubuntu",
        "method_name": "file_present",
        "promiser": "method_call" 
      },
      {
        "args": [
          "/etc/default/zabbix-agent",
          "644",
          "root",
          "root" 
        ],
        "class_context": "any",
        "method_name": "permissions" 
      },
      {
        "args": [
          "/etc/default/zabbix-agent",
          "${rudder_parameters.rudder_file_edit_header}" 
        ],
        "class_context": "ubuntu",
        "method_name": "file_block_present",
        "promiser": "method_call" 
      },
      {
        "args": [
          "/etc/default/zabbix-agent",
          "START",
          "\"yes\"",
          "=" 
        ],
        "class_context": "any",
        "method_name": "file_key_value_present" 
      },
      {
        "args": [
          "/etc/default/zabbix-agent",
          "CONFIG_FILE",
          "\"/etc/zabbix/zabbix_agentd.conf\"",
          "=" 
        ],
        "class_context": "any",
        "method_name": "file_key_value_present" 
      },
      {
        "args": [
          "zabbix-agent" 
        ],
        "class_context": "ubuntu.(file_key_value_present__etc_default_zabbix_agent_repaired)",
        "method_name": "command_execution",
        "promiser": "method_call" 
      }
    ]
  }
}

Actions

Also available in: Atom PDF