Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context with " #10

Closed
ralfbosz opened this issue Feb 21, 2020 · 1 comment
Closed

Context with " #10

ralfbosz opened this issue Feb 21, 2020 · 1 comment

Comments

@ralfbosz
Copy link

I want to change something in the <Directory "/var/www/html"> context, but the " are causing a 'problem', can't seem to select it. When the context is <Directory /var/www/html> it is working perfect:

apache_directive { "Options for html":
  name   => 'Options',
  args   => 'SymLinksIfOwnerMatch',
  ensure => present,
  context => 'Directory[arg="/var/www/html"]',
}

But trying to get the " in the context like this:

apache_directive { "Options for html":
  name   => 'Options',
  args   => 'SymLinksIfOwnerMatch',
  ensure => present,
  context => 'Directory[arg="\"/var/www/html\""]',
}

Makes Puppet change the context for the directory /

@ralfbosz
Copy link
Author

Never mind, found it :)

"Directory[arg='\"/var/www/html\"']"

From: https://www.moeding.net/2015/03/quoted-shellvars-in-augeas/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant