{
  "name": "phoenix-app",
  "description": "Runs Phoenix apps",
  "default_attributes": {
    "elixir": {
      "version": "1.0.5"
    }
  },
  "json_class": "Chef::Role",
  "run_list": [
    "recipe[elixir::default]",
    "recipe[phoenix-git::default]"
  ],
  "chef_type": "role"
}

{
  "name": "phoenix-app",
  "description": "Runs Phoenix apps",
  "default_attributes": {
    "elixir": {
      "version": "1.0.5"
    },
    "firewall" : {
      "rules" : [
        {"allow http on port 80" : {"port" : 80}},
        {"allow http on port 8080" : {"port" : 8080}}
      ]
    }
  },
  "json_class": "Chef::Role",
  "run_list": [
    "recipe[elixir::default]",
    "recipe[phoenix-git::default]",
    "recipe[ufw::default]"
  ],
  "chef_type": "role"
}

Allow ports 80 and 8080 for phoenix app
Allow ports 80 and 8080 for phoenix app
