Skip to content

Commit

Permalink
Merge pull request #17 from redBorder/development
Browse files Browse the repository at this point in the history
Release 1.1.0
  • Loading branch information
manegron authored Oct 24, 2024
2 parents 47d50f2 + 1b6e265 commit 0a01214
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cookbook-pmacct CHANGELOG
===============

## 1.1.0

- Miguel Negrón
- [124a6b3] Merge pull request #16 from redBorder/bugfix/#18169_rename_pmacctd_to_sfacctd_service

## 1.0.0

- Miguel Negrón
Expand Down
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
maintainer_email '[email protected]'
license 'AGPL-3.0'
description 'Installs/Configures cookbook-pmacct'
version '1.0.0'
version '1.1.0'
4 changes: 3 additions & 1 deletion resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
kafka_topic = new_resource.kafka_topic
kafka_broker_port = new_resource.kafka_broker_port
geo_country = new_resource.geo_country
sfacctd_ip = new_resource.sfacctd_ip

dnf_package 'pmacct' do
action :upgrade
Expand Down Expand Up @@ -41,7 +42,8 @@
kafka_hosts: kafka_hosts,
kafka_topic: kafka_topic,
kafka_broker_port: kafka_broker_port,
geo_country: geo_country)
geo_country: geo_country,
sfacctd_ip: sfacctd_ip)
notifies :restart, 'service[sfacctd]', :delayed unless node['redborder']['leader_configuring']
end

Expand Down
1 change: 1 addition & 0 deletions resources/resources/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
attribute :kafka_topic, kind_of: String, default: 'sflow'
attribute :kafka_broker_port, kind_of: Integer, default: 9092
attribute :geo_country, kind_of: String, default: '/usr/share/GeoIP/GeoLiteCountry.dat'
attribute :sfacctd_ip, kind_of: String
2 changes: 1 addition & 1 deletion resources/templates/default/sfacctd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ geoipv2_file: <%=@geo_country %>
sfacctd_time_new: true
sfacctd_account_options: true
sfacctd_port: 6343
sfacctd_ip: <%= "#{node["ipaddress"]}" %>
sfacctd_ip: <%= "#{@sfacctd_ip}" %>

sfprobe_direction: tag

Expand Down

0 comments on commit 0a01214

Please sign in to comment.