<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://agora.nasqueron.org/index.php?action=history&amp;feed=atom&amp;title=Operations_grimoire%2FRHEL</id>
	<title>Operations grimoire/RHEL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://agora.nasqueron.org/index.php?action=history&amp;feed=atom&amp;title=Operations_grimoire%2FRHEL"/>
	<link rel="alternate" type="text/html" href="https://agora.nasqueron.org/index.php?title=Operations_grimoire/RHEL&amp;action=history"/>
	<updated>2026-05-26T21:31:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-alpha</generator>
	<entry>
		<id>https://agora.nasqueron.org/index.php?title=Operations_grimoire/RHEL&amp;diff=1363&amp;oldid=prev</id>
		<title>Dereckson: Created page with &quot;Docker engines servers uses CentOS Stream (e.g. Dwellers) or Rocky (e.g. docker-002).  == SELinux == States targeting RHEL machines need to apply the relevant SELinux context to &#039;&#039;&#039;each&#039;&#039;&#039; directory and file.  For example, to apply the context &lt;code&gt;httpd_log_t&lt;/code&gt; to &lt;code&gt;/var/log/www&lt;/code&gt;:      {% set has_selinux = salt[&#039;grains.get&#039;](&#039;selinux:enabled&#039;, False) %}          /var/log/www:       file.directory:         - user: {{ options[&quot;www_user&quot;] }}         - group...&quot;</title>
		<link rel="alternate" type="text/html" href="https://agora.nasqueron.org/index.php?title=Operations_grimoire/RHEL&amp;diff=1363&amp;oldid=prev"/>
		<updated>2023-05-30T23:35:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Docker engines servers uses CentOS Stream (e.g. Dwellers) or Rocky (e.g. docker-002).  == SELinux == States targeting RHEL machines need to apply the relevant SELinux context to &amp;#039;&amp;#039;&amp;#039;each&amp;#039;&amp;#039;&amp;#039; directory and file.  For example, to apply the context &amp;lt;code&amp;gt;httpd_log_t&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;/var/log/www&amp;lt;/code&amp;gt;:      {% set has_selinux = salt[&amp;#039;grains.get&amp;#039;](&amp;#039;selinux:enabled&amp;#039;, False) %}          /var/log/www:       file.directory:         - user: {{ options[&amp;quot;www_user&amp;quot;] }}         - group...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Docker engines servers uses CentOS Stream (e.g. Dwellers) or Rocky (e.g. docker-002).&lt;br /&gt;
&lt;br /&gt;
== SELinux ==&lt;br /&gt;
States targeting RHEL machines need to apply the relevant SELinux context to &amp;#039;&amp;#039;&amp;#039;each&amp;#039;&amp;#039;&amp;#039; directory and file.&lt;br /&gt;
&lt;br /&gt;
For example, to apply the context &amp;lt;code&amp;gt;httpd_log_t&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;/var/log/www&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
    {% set has_selinux = salt[&amp;#039;grains.get&amp;#039;](&amp;#039;selinux:enabled&amp;#039;, False) %}&lt;br /&gt;
    &lt;br /&gt;
    /var/log/www:&lt;br /&gt;
      file.directory:&lt;br /&gt;
        - user: {{ options[&amp;quot;www_user&amp;quot;] }}&lt;br /&gt;
        - group: web&lt;br /&gt;
        - dir_mode: 711&lt;br /&gt;
    &lt;br /&gt;
   {% if has_selinux %}&lt;br /&gt;
    selinux_context_nginx_logs:&lt;br /&gt;
      selinux.fcontext_policy_present:&lt;br /&gt;
        - name: /var/log/www&lt;br /&gt;
        - sel_type: httpd_log_t&lt;br /&gt;
    &lt;br /&gt;
    selinux_context_nginx_logs_applied:&lt;br /&gt;
      selinux.fcontext_policy_applied:&lt;br /&gt;
        - name: /var/log/www&lt;br /&gt;
    {% endif %}&lt;br /&gt;
&lt;br /&gt;
You&amp;#039;ll find examples in {{Ops file|roles/paas-docker/containers/}} files.&lt;br /&gt;
&lt;br /&gt;
For booleans (sebool) or custom policies, you&amp;#039;ll find examples in {{Ops file|roles/paas-docker/nginx/selinux.sls}}&lt;/div&gt;</summary>
		<author><name>Dereckson</name></author>
	</entry>
</feed>